Description
Subtract endpoints, compute limit-minus-elapsed margin and compare inclusively.
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.
Subtract endpoints, compute limit-minus-elapsed margin and compare inclusively.
When to use this tool
Use Food Sample Holding Time Caller Margin when you need an explicit holding-window, clock or sampled-duration calculation.
How to use the tool and how it works
- Enter collectionTime, analysisTime, suppliedLimit. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read elapsed, margin, withinSuppliedLimit. Inspect withinSuppliedLimit before interpreting the associated values.
Require analysisTime at least collectionTime and nonnegative suppliedLimit. Subtract endpoints, compute limit-minus-elapsed margin and compare inclusively.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| collectionTime | Collection Time | Required. Finite number. |
| analysisTime | Analysis Time | Required. Finite number. |
| suppliedLimit | Supplied Limit | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| elapsed | Elapsed | Required. Finite number. |
| margin | Signed allowance under the subtraction order above. | Required. Finite number. |
| withinSuppliedLimit | Within Supplied Limit | Required. Boolean. |
{
"input": {
"collectionTime": 100,
"analysisTime": 160,
"suppliedLimit": 90
},
"output": {
"elapsed": 60,
"margin": 30,
"withinSuppliedLimit": true
}
} Limitations and assumptions
- Inputs share one time unit and clock origin. The supplied limit is not an official sampling rule and passing does not establish sample integrity or safe food.
- 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 Clock Uncertainty Term
Return max(0,endLower-startUpper) and endUpper-startLower.