Description
Subtract supplied disjoint break durations; dates and overnight intervals must be unfolded by the caller.
Administrative service records use supplied time windows, counts, fees, and exception credits. Their arithmetic can show a gap or remaining balance while leaving evidence verification, legal rights, and the choice of an applicable service rule for separate review.
Subtract supplied disjoint break durations; dates and overnight intervals must be unfolded by the caller.
When to use this tool
Use it for public counter open hours net break when the required inputs and conventions are already available.
How to use the tool and how it works
- Enter openingMinute, closingMinute, breaks. Keep parallel arrays aligned and use the stated units and conventions.
- Run the calculation. Correct any input error before interpreting a result.
- Read grossMinutes, openMinutes. Inspect any known, defined, inclusion, or boundary flags before interpreting numeric values.
Require closingMinute>=openingMinute and nonnegative break durations whose sum is no greater than the opening span. Return grossMinutes and openMinutes after subtracting breaks.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| openingMinute | Opening Minute | Required. Finite number. |
| closingMinute | Closing Minute | Required. Finite number. |
| breaks | Breaks | Required. Array of Finite number.; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| grossMinutes | Gross Minutes | Required. Finite number. |
| openMinutes | Open Minutes | Required. Finite number. |
{
"input": {
"openingMinute": 540,
"closingMinute": 1020,
"breaks": [
30,
15
]
},
"output": {
"grossMinutes": 480,
"openMinutes": 435
}
} Limitations and assumptions
- Minute values need a common day-axis convention, including any explicit overnight offset. Breaks must not overlap; no schedule parsing, holiday rules, or staffing capacity is inferred.
- The field tables describe structural bounds; the mechanics also state cross-field requirements. Malformed input shapes, disallowed keys, and invalid domains cause input errors. Results must remain finite and within the declared output contract. A successful false flag or zero placeholder is distinct from an error.
- Numeric arithmetic uses binary floating point. Exact comparisons have no hidden tolerance or decimal rounding; negative zero is exported as zero. Decimal-text integer operations retain the exactness specifically stated above.
Alternative or Complementary methods
For public counter open hours net break, check the source records and the supplied rule before comparing the result with another method. Consult the applicable authoritative rule when deciding eligibility, legal timing, fees, or obligations.
References
Similar or alternative tools
- Public Benefit Overpayment Explicit Recovery Cap
Cap one supplied installment without inferring recovery eligibility or hardship policy.
- Public Fee Exempt Base Flag
Calculate public fee exempt base flag from explicit caller-supplied inputs.