# Pet Weight-Loss Calorie & Multi-Pet Fridge Chart Generator — Algorithm

Plain-text mathematical specification for `https://pacebowl.com/tools/pet-weight-loss-and-fridge-chart-generator/`.

## Clinical Standards
Calibrated against **WSAVA Body Condition Score (BCS 1–9) Chart**, **AAHA Weight Management Guidelines for Dogs and Cats**, and **NRC (2006)** Resting Energy Requirement formulas.

## Core Equations
```
# Step 1: Estimate Ideal Target Weight from 9-Point BCS (~10% excess per unit > 5)
bcs_excess_ratio    = 1 + ((BCS - 5) * 0.10)   # BCS 6=1.10, 7=1.20, 8=1.30, 9=1.40
ideal_weight_kg     = current_weight_kg / bcs_excess_ratio
ideal_RER           = round(70 * (ideal_weight_kg ^ 0.75))

# Step 2: Safe Weight-Loss / Senior Target Calories
target_kcal         = round(ideal_RER * clinical_factor)
daily_grams         = round((target_kcal / kcal_per_kg) * 1000)
grams_per_meal      = round(daily_grams / meals_per_day)
max_treat_kcal      = round(target_kcal * 0.10)

# Step 3: Safe Weekly Weight-Loss Rate Guardrail
dog_safe_loss_wk    = current_weight_kg * [0.01, 0.02]   # 1.0% to 2.0% per week
cat_safe_loss_wk    = current_weight_kg * [0.005, 0.01]  # 0.5% to 1.0% per week (hepatic lipidosis guardrail)
```

## Clinical Multipliers (Based on Ideal Weight)
- Overweight Dog Safe Weight Loss: `1.0x Ideal RER`
- Overweight Indoor Cat Safe Weight Loss: `0.8x Ideal RER` (never crash-diet or fast cats)
- Senior Dog Low-Impact Trim (7+ yrs): `1.2x Ideal RER`
- Senior Cat Precision Maintenance (10+ yrs): `1.1x Ideal RER`
