Skip to content

Main content

Sample Temperature Duration Window Tool

Inspect supplied observation/window geometry and one explicit temperature range; no food-safety limits or safety verdict are inferred.

Loading tool…

Description

Return time overlap and an independent inclusive temperature-in-range flag.

A time-window check needs explicit endpoints, inclusion rules and a common clock. Caller-supplied holding limits and temperature flags are model inputs; passing a local check does not establish a safe handling process.

Return time overlap and an independent inclusive temperature-in-range flag.

When to use this tool

Use Sample Temperature Duration Window when you need an explicit holding-window, clock or sampled-duration calculation.

How to use the tool and how it works

  1. Enter observedStart, observedEnd, suppliedWindowStart, suppliedWindowEnd, measuredTemperature, suppliedLowerTemperature, suppliedUpperTemperature. 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 overlapDuration, temperatureInside. Inspect temperatureInside before interpreting the associated values.

Require ordered observation/window endpoints and ordered temperature limits. Return time overlap and an independent inclusive temperature-in-range flag.1

Input fieldMeaning and unitsAccepted input
observedStartObserved StartRequired. Finite number.
observedEndObserved EndRequired. Finite number.
suppliedWindowStartSupplied Window StartRequired. Finite number.
suppliedWindowEndSupplied Window EndRequired. Finite number.
measuredTemperatureMeasured TemperatureRequired. Finite number.
suppliedLowerTemperatureSupplied Lower TemperatureRequired. Finite number.
suppliedUpperTemperatureSupplied Upper TemperatureRequired. Finite number.
Output fieldInterpretationReturned shape
overlapDurationOverlap DurationRequired. Finite number.
temperatureInsideTemperature InsideRequired. Boolean.
json
{
  "input": {
    "observedStart": 0,
    "observedEnd": 20,
    "suppliedWindowStart": 10,
    "suppliedWindowEnd": 30,
    "measuredTemperature": 5,
    "suppliedLowerTemperature": 0,
    "suppliedUpperTemperature": 10
  },
  "output": {
    "overlapDuration": 10,
    "temperatureInside": true
  }
}

Limitations and assumptions

  • One measured temperature does not describe the entire overlapping interval. Time/temperature limits are supplied and passing does not establish safe food or process lethality.
  • 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 validated food-safety procedure and complete temperature/time history. Resolve sensor calibration, sampling gaps and product-specific limits before making handling decisions.

References

  1. Calculation and input contract: food-safety/sample-temperature-duration-window — tool.io

Similar or alternative tools