Hello, My name is Lars. I am 42 years young and starting a career change in my life. I started to take some programming classes last year and next year will start to take some math classes to help me grow. I have a program that I am working on and the math is a bit beyond me still. So I thought I would ask and see if anyone could help me reason this out.

The program is for weight loss and tells the user how many calories he should eat every day to loose weight and find how many seconds it takes to burn a calorie. Taking my age, weight and height I should consume 2762 calories a day to maintain my weight level. There are 86,400 seconds in a day and when I dived that by my total calorie useage I burn 1 calorie every 31.1913 second on average. If I want to loose 4 pounds a month (4weeks or 28 days) I would reduce that number by 500 calories to 2262 calories per day. The equation below gives me the calories a person should burn, which works fine for starting weight, age and height.

Now here is the problem... It estimates what the user should have lost giving the time, in seconds, since the program was started. Lets say 1 week exactly 604800 seconds, this is taking in to effect no food eating for this example and a starting weight of 260.0 pounds using 2762 calories per day.maleAgeMultiplier = 6.8;

maleHeightMultiplier = 12.7;

maleWeightMultiplier = 6.23;

maleBRMTotal = (66 + ((height * maleHeightMultiplier) + (weight * maleWeightMultiplier)) - (age * maleAgeMultiplier));

By the end of this week, and not eating any food the body weight would be 254.46 (254.5 lbs). But as the user looses weight the body uses less calories. Buy the time he lost 5.5 lbs his new body calorie needs are now 2721, 41 calories less then then 2762 he needed with the 260.0 starting body weight.5.54 lbs total loss = ((2762 calories per day * 7 days) / 3500 calories to a pound);

I need to find the mathematical equation for this sliding scale? He really did not loose 5.54 pounds because as he got close to that new weight his body needed less calories daily and should be slightly heavier.

I hope I explained my problem well enough. Any help would be appreciated in solving this.

Thanks!