aboutsummaryrefslogtreecommitdiff
path: root/bmr
diff options
context:
space:
mode:
Diffstat (limited to 'bmr')
-rwxr-xr-xbmr4
1 files changed, 2 insertions, 2 deletions
diff --git a/bmr b/bmr
index e684312..5766d88 100755
--- a/bmr
+++ b/bmr
@@ -1,7 +1,7 @@
#!/bin/rc
#
# BMR following the Mifflin-St. Jeor equation
-# P(kcal/day) = 10*weight(kg) + 6.25*height(cm) - (5*age(yr)) + s
+# P(kcal/day) = 10*weight(kg) + 6.25*height(cm) - 5*age(yr) + s
# where s is +5 for men and -161 for women
#
s=5
@@ -28,5 +28,5 @@ if(~ $flagw 1)
bc <<EOF
scale=4
-10*$w + 6.25*$h - (5*$a) + $s
+10*$w + 6.25*$h - 5*$a + $s
EOF