Skip to content

Main content

Recipe Fat Drainage Energy Adjustment Tool

Calculate recipe fat drainage energy adjustment from explicit caller-supplied inputs.

Loading tool…

Description

Adjust a recipe's fat and energy after drainage.

Food energy and label values depend on the declared nutrient factors, serving basis and rounding convention. A numerical fraction or rounding envelope does not select a regulatory rule, establish food quality or determine individual nutritional needs.

Adjust a recipe's fat and energy after drainage.

When to use this tool

Use Recipe Fat Drainage Energy Adjustment when checking one explicit energy, label-resolution or rounding term.

How to use the tool and how it works

  1. Enter initialFat, drainedFat, fatEnergyFactor, initialEnergy. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read remainingFat, removedEnergy, remainingEnergy. Use the output convention below.

Adjust a recipe's fat and energy after drainage. Require nonnegative drainedFat <= initialFat and energy factor, and sufficient initialEnergy; subtract drained fat and its factor-derived energy.1

Input fieldMeaning and unitsAccepted input
initialFatInitial FatRequired. Finite number.
drainedFatDrained FatRequired. Finite number; minimum 0.
fatEnergyFactorFat Energy FactorRequired. Finite number; minimum 0.
initialEnergyInitial EnergyRequired. Finite number.
Output fieldInterpretationReturned shape
remainingFatRemaining FatRequired. Finite number.
removedEnergyRemoved EnergyRequired. Finite number.
remainingEnergyRemaining EnergyRequired. Finite number.
json
{
  "input": {
    "initialFat": 30,
    "drainedFat": 10,
    "fatEnergyFactor": 9,
    "initialEnergy": 500
  },
  "output": {
    "remainingFat": 20,
    "removedEnergy": 90,
    "remainingEnergy": 410
  }
}

Limitations and assumptions

  • Use compatible mass and energy units; this assumes drainage removes the specified fat alone.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use the applicable labeling method and matched food-composition basis; assess dietary implications with appropriate professional context.

References

  1. Calculation and input contract: dietetics/recipe-fat-drainage-energy-adjustment — tool.io

Similar or alternative tools