The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “1Win

Need help in this calculation

John aka

Member
Hello everyone I hope all of you are doing well
Please I need some help I hired a devloper to build for me like this keto macros calculator but I got some errors, I don't know which formula they used,

For calories calculation I use this equation

Calories =BMR *activity levels

Activity level is constant:

Little to no exercise=1.2
Light exercise=1.375
Moderate exercise=1.55
Heavey exercise=1.725
Very heavy exercise = 1.9

To calculate BMR I use Mifflin-St Jeor equation the most reliable and accurate equation.

Male BMR = (weight in kilograms x 10) + (height in centimeters x 6.25) - (age in years x 5) + 5

For example let try to calculate calories needed for man who have 38 years andweight 100 kg and his height 190cm and he not exercise.

BMR= (100*10)+(6.25*190)_(5*38)+5=2002.5

Calories=2002.5*1.2=2403cal

Now if I applique same calculation for same example I get errors as you can see in these screenshots could you please help me out to solve this issue, I sorry for my English
 

Attachments

  • Screenshot_20201228-132510.jpg
    Screenshot_20201228-132510.jpg
    172.6 KB · Views: 6
  • Screenshot_20201228-132510.jpg
    Screenshot_20201228-132510.jpg
    172.6 KB · Views: 4
the *fix*
Code:
$ bc -l

scale=2
( (100*10)+(6.25*190) ) - (5*38)+5
2002.50

note* (()) -
Hello graybeard thank you a lot
The calories calculation varies also from men to women
Because The BMR equation of women not like men

Here the equation bmr for women

BMR for females = (weight in kilograms x 10) + (height in centimeters x 6.25) - (age in years x 5) - 161

Please kindly could you give me code for both of them, so I could send it to devloper I sorry to bother you
 
banners
Back