Calorie and macro targets
malai_calculate_daily_targetsMALAI: Estimate daily calories, protein, carbs, fat and fiber from sex, age, height, weight, activity and goal, with MALAI's safety limits (a calorie floor and a cap on the rate of loss). Same calculator the MALAI app uses. Use for "how many calories should I eat on Wegovy", "what macros to lose 1 lb a week". Adults only. Don't use for a signed-in user's saved targets (that is malai_get_nutrition_targets).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | Age in years. Adults only (18+). | |
| sex | Yes | Sex used by the calorie formula. | |
| goal | No | Weight goal. Default lose. | |
| height | Yes | Height, in height_unit. Feet and inches must be converted to inches (5 ft 6 in = 66). | |
| weight | Yes | Current body weight, in weight_unit. | |
| activity | No | Daily activity: sedentary (desk, little exercise), light (1–3 workouts a week), moderate (3–5), very_active (6–7), athlete (training twice a day). Default light. | |
| height_unit | Yes | Unit of height. | |
| weight_unit | Yes | Unit of weight and of rate_per_week. | |
| rate_per_week | No | Desired change per week, in weight_unit. Ignored for maintain. Default 0.5 kg (1.1 lb). Loss is capped for safety; the applied rate is returned as rate_per_week_kg. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bmr | Yes | ||
| note | Yes | ||
| tdee | Yes | ||
| fat_g | Yes | ||
| notes | Yes | ||
| source | Yes | ||
| carbs_g | Yes | ||
| fiber_g | Yes | ||
| calories | Yes | ||
| protein_g | Yes | ||
| goal_delta_kcal | Yes | ||
| rate_per_week_kg | Yes | ||
| safety_adjustments | Yes |