Description
Return currentCycle-minus-previousCycle and interval minus that elapsed difference.
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 currentCycle-minus-previousCycle and interval minus that elapsed difference.
When to use this tool
Use Sanitation Record Cycle Gap when you need a specified food-handling record or traceability diagnostic.
How to use the tool and how it works
- Enter previousCycle, currentCycle, suppliedInterval. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read elapsed, remaining. Use the output convention below.
Require nonnegative suppliedInterval. Return currentCycle-minus-previousCycle and interval minus that elapsed difference.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| previousCycle | Previous Cycle | Required. Finite number. |
| currentCycle | Current Cycle | Required. Finite number. |
| suppliedInterval | Supplied Interval | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| elapsed | Elapsed | Required. Finite number. |
| remaining | Remaining | Required. Finite number. |
{
"input": {
"previousCycle": 10,
"currentCycle": 25,
"suppliedInterval": 20
},
"output": {
"elapsed": 15,
"remaining": 5
}
} Limitations and assumptions
- Cycle coordinates need not be chronologically ordered; a negative elapsed value is retained. No sanitation method, effectiveness or official interval is selected.
- 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
Similar or alternative tools
- Food Sample Holding Time Caller Margin
Subtract endpoints, compute limit-minus-elapsed margin and compare inclusively.
- Food Inspection Record Expiry Gap
Add it to issuedDay, subtract queryDay for remaining time and flag expired only after expiry.