Skip to content

Main content

Temperature Sample Valid Duration Tool

Sum caller-classified sample durations without choosing temperature limits or certifying food safety.

Loading tool…

Description

Sum valid durations and all recorded durations separately.

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.

Sum valid durations and all recorded durations separately.

When to use this tool

Use Temperature Sample Valid Duration when you need a specified food-handling record or traceability diagnostic.

How to use the tool and how it works

  1. Enter durations, valid. Keep parallel arrays aligned. 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 validDuration, recordedDuration. Use the output convention below.

Require aligned nonnegative durations and validity flags. Sum valid durations and all recorded durations separately.1

Input fieldMeaning and unitsAccepted input
durationsDurationsRequired. Array of finite number; minimum 0; maximum items 256.
validWhether this specific check passes; not necessarily a full object-validity verdict.Required. Array of boolean; maximum items 256.
Output fieldInterpretationReturned shape
validDurationValid DurationRequired. Finite number.
recordedDurationRecorded DurationRequired. Finite number.
json
{
  "input": {
    "durations": [
      2,
      3,
      4
    ],
    "valid": [
      true,
      false,
      true
    ]
  },
  "output": {
    "validDuration": 6,
    "recordedDuration": 9
  }
}

Limitations and assumptions

  • Validity is supplied rather than derived from temperature or sensor calibration; duration coverage alone cannot establish safe food handling.
  • 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/temperature-sample-valid-duration — tool.io

Similar or alternative tools