Skip to content

Commit

Permalink
Create TDEE calculator function (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: Hala Arar <[email protected]>
  • Loading branch information
halaarar and Hala Arar authored Jan 10, 2025
1 parent 7918898 commit b034667
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/healthsciencecalculator/healthsciencecalculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,24 @@ def get_bmi(
- risk_level (str): Associated health risk level
"""
return



def get_tdee(
bmr: float,
activity_level: str
) -> float:
"""
Calculate the Total Daily Energy Expenditure (TDEE) based on BMR and activity level.
Parameters:
- bmr (float): The Basal Metabolic Rate calculated using `calculate_bmr`.
- activity_level (str): The activity level of the individual. Options are:
'sedentary', 'lightly active', 'moderately active', 'very active', 'extra active'.
Returns:
- float: The calculated TDEE value in kilocalories per day.
"""
pass


0 comments on commit b034667

Please sign in to comment.