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
- Enter observedStart, observedEnd, suppliedWindowStart, suppliedWindowEnd, measuredTemperature, suppliedLowerTemperature, suppliedUpperTemperature. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| observedStart | Observed Start | Required. Finite number. |
| observedEnd | Observed End | Required. Finite number. |
| suppliedWindowStart | Supplied Window Start | Required. Finite number. |
| suppliedWindowEnd | Supplied Window End | Required. Finite number. |
| measuredTemperature | Measured Temperature | Required. Finite number. |
| suppliedLowerTemperature | Supplied Lower Temperature | Required. Finite number. |
| suppliedUpperTemperature | Supplied Upper Temperature | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| overlapDuration | Overlap Duration | Required. Finite number. |
| temperatureInside | Temperature Inside | Required. Boolean. |
{
"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
Similar or alternative tools
- Sample Holding Window Closure Flag
Test each endpoint inclusively or strictly according to its flag.
- Cold Chain Excursion Supplied Threshold Duration
For each interval, use its left sample and count its duration only when strictly above or below threshold.