Skip to content

Main content

Food Lot Quantity Difference Tool

Audit explicitly supplied food-lot quantities without a food-safety release decision.

Loading tool…

Description

Return recorded minus expected.

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 recorded minus expected.

When to use this tool

Use Food Lot Quantity Difference when you need a specified food-handling record or traceability diagnostic.

How to use the tool and how it works

  1. Enter recorded, expected. 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 difference. Use the output convention below.

Require nonnegative recorded and expected quantities. Return recorded minus expected.1

Input fieldMeaning and unitsAccepted input
recordedRecordedRequired. Finite number; minimum 0.
expectedExpectedRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
differenceDifferenceRequired. Finite number.
json
{
  "input": {
    "recorded": 98,
    "expected": 100
  },
  "output": {
    "difference": -2
  }
}

Limitations and assumptions

  • Quantities must share units and scope. A discrepancy has no built-in tolerance or causal explanation and does not establish traceability or safety.
  • 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

  1. Calculation and input contract: food-safety/food-lot-quantity-difference — tool.io

Similar or alternative tools