### Basal Metabolic Rate

Basal metabolic rate is computed using the Mifflin-St Jeor equation, which is expressed mathematically as
a linear combination of height, weight, and age plus a bias conditioned on sex, scaled up by a factor that
is a function of average weekly activity level.

Female: activity level * (10 * weight + 6.25 * height – 5 * age – 161)

Male: activity level * (10 * weight + 6.25 * height – 5 * age + 5)

Scale factors for activity level:

- Sedentary = 1.2
- Lightly active = 1.375
- Moderately active = 1.55
- Active = 1.725
- Very active = 1.9

### Cycling Workout Energy Expenditure

Energy expended during a cycling workout can be computed by taking the average power, measured in watts,
exerted during an activity and multiplying it by activity hours and again by a constant, 3.6.

### Total Energy Expenditure

Total energy expenditure is computed by adding the basal metabolic rate and the cycling workout
energy expenditure together.

### Macronutrient Energy Distribution

Using the total energy expenditure as the total calories needed for the day, the macro Distribution
is then computed using the following weight objective specific percentages.

- Weight loss: 40/40/20 (carbohydrates/protein/fats)
- Weight gain: 40/30/30
- Weight maintenance: 40/30/30