My reference

So need to input a person's weight and possibly convert to metric for calculations. I have a table already on my vegan site with every conversion I could find so that is not a problem. Weight could be pounds or even stones.

Now I need some inputs, one for the weight with a possible choice of units etc etc

Code: Select all

```
function HB_BMR(weight, age, height) { // kg, years, centimeters
return 66.5 + ( 13.75 × weight ) + ( 5.003 × height ) – ( 6.755 × age );
}
```

Code: Select all

```
function BMR(base, active) {
switch active {
case 1:
return base * 1.2;
break;
case 2:
return base * 1.375;
break;
case 3:
return base * 1.55;
break;
case 4:
return base * 1.75;
break;
case 5:
return base * 1.9;
break;
default:
return base * 1.2;
break;
}
}
```