Description
Return the balance residual and onward/received fraction.
Food-safety records connect lots, samples, tests, labels and handling events. Consistent identifiers and reconciled quantities support record review, but do not establish safe food, complete traceability or valid regulatory approval.
Return the balance residual and onward/received fraction.
When to use this tool
Use Food Traceability One Hop Quantity Balance when you need a specified food-handling record or traceability diagnostic.
How to use the tool and how it works
- Enter received, onward, retained, processLoss. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read unreconciled, onwardFraction. Use the output convention below.
Require positive received and nonnegative onward, retained and process loss, with onward no greater than received. Return the balance residual and onward/received fraction.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| received | Received | Required. Finite number; strictly above 0. |
| onward | Onward | Required. Finite number; minimum 0. |
| retained | Retained | Required. Finite number; minimum 0. |
| processLoss | Process Loss | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| unreconciled | Unreconciled | Required. Finite number. |
| onwardFraction | Onward Fraction Unit: 1. | Required. Finite number. |
{
"input": {
"received": 100,
"onward": 60,
"retained": 30,
"processLoss": 5
},
"output": {
"unreconciled": 5,
"onwardFraction": 0.6
}
} Limitations and assumptions
- Total dispositions are not capped, so unreconciled can be negative. A single hop does not validate complete supply-chain traceability or actual losses.
- 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
Review the complete controlled records, actual product condition and applicable validated procedures. Authenticate sources and approvals rather than treating one matching token or balance as a safety verdict.
References
Similar or alternative tools
- Traceability Lot Quantity Residual
Compute received-issued+returned-destroyed using exact integer intermediates and counted-minus-expected residual, exporting safe numeric integers.
- Food Recall Lot Quantity Reconcile
Return unassigned and released-minus-returned.