adi-kiran / burnout-healthgoalsapp

Source code repository for the 'BurnOut' project
MIT License
3 stars 4 forks source link

Add a page to calculate TDEE: Total Daily Energy Expenditure #6

Open amritav opened 11 months ago

amritav commented 11 months ago

Issue Description

TDEE (Total Daily Energy Expenditure) is a critical metric for individuals managing their nutrition and fitness goals, and having this feature within the app would greatly enhance its utility. Hence there should be a TDEE calculator page in the application as it:

Feature Details

Scope of Impact

Header of all pages A new TDEE calculator page

Implementation Ideas

amritav commented 11 months ago

We can use the following formula to calculate TDEE incase we do not have Bodyfat% details: Step 1: Calculate BMR Mifflin-St Jeor Equation BMR = (10.m + 6.25h - 5.0a) + s m is mass in kg, h is height in cm, a is age in years, s is +5 for males and -161 for females

Step 2: Calculate TDEE Here are the different activity factors and their corresponding activity levels: TDEE = alf * BMR alf values: Sedentary: 1.2 Lightly active: 1.375 Moderately active: 1.55 Very active: 1.725 Super active: 1.9

amritav commented 11 months ago

We can use the following formula to calculate TDEE incase we do have Bodyfat% details: Step 1: Calculate BMR Katch-McArdle Equation Lean Body Mass = m (1-bf) BMR = 370 + (21.6 LBM) where LBM is lean body mass, m is mass in kg, bf is body fat percentage in percentage.

Step 2: Calculate TDEE Here are the different activity factors and their corresponding activity levels: TDEE = alf * BMR alf values: Sedentary: 1.2 Lightly active: 1.375 Moderately active: 1.55 Very active: 1.725 Super active: 1.9