Examples
Examples
Try the starting example
- Food labels: ID, grams consumed, reference grams, kcal, protein g, carbohydrate g, fat g, sodium mg per reference
- Oats,100,50,200,6,30,5,10 Nuts,30,30,180,6,6,16,0
- Supplied comparison targets: kcal, protein g, carbohydrate g, fat g, sodium mg
- 600,20,70,25,500
- Scaled label totals for consumed quantities
- Energy kcal: 580; Protein g: 18; Carbohydrate g: 66; Fat g: 26; Sodium mg: 20
- Supplied target minus label total, signed
- Energy kcal: 20; Protein g: 2; Carbohydrate g: 4; Fat g: -1; Sodium mg: 480
- Metrics below supplied comparison target
- Energy kcal, Protein g, Carbohydrate g, Sodium mg
- Metrics above supplied comparison target
- Fat g
Try another scenario
- Food labels: ID, grams consumed, reference grams, kcal, protein g, carbohydrate g, fat g, sodium mg per reference
- Oats,100,50,200,6,30,5,10 Nuts,60,30,180,6,6,16,0
- Supplied comparison targets: kcal, protein g, carbohydrate g, fat g, sodium mg
- 600,20,70,25,500
- Scaled label totals for consumed quantities
- Energy kcal: 760; Protein g: 24; Carbohydrate g: 72; Fat g: 42; Sodium mg: 20
- Supplied target minus label total, signed
- Energy kcal: -160; Protein g: -4; Carbohydrate g: -2; Fat g: -17; Sodium mg: 480
- Metrics below supplied comparison target
- Sodium mg
- Metrics above supplied comparison target
- Energy kcal, Protein g, Carbohydrate g, Fat g
Calculation method
Calculation method
Scaled label totals for consumed quantities
For each food multiply each supplied label value by consumed grams/reference grams, then sum by metric.
Supplied target minus label total, signed
Target−scaled total; do not infer nutrient targets.
Metrics below supplied comparison target
List strictly positive target−total differences.
Metrics above supplied comparison target
List strictly negative target−total differences, without labeling any direction beneficial or harmful.
Symbols and units
- a
- Food labels: ID, grams consumed, reference grams, kcal, protein g, carbohydrate g, fat g, sodium mg per reference
- b
- Supplied comparison targets: kcal, protein g, carbohydrate g, fat g, sodium mg
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Assumptions & limits
Assumptions & limits
- Label arithmetic with user-supplied comparison targets, not a dietary prescription, food-health rating or assessment of what a hiker needs. Energy follows the supplied kcal label rather than being recomputed from macronutrients.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.
Further reading
FDA: scaling the supplied Nutrition Facts serving data; targets are user inputs ↗
Background reading; this does not imply endorsement or independent review of SumFizz.