Service-window calculations
Check coverage unions, exclusions, deadlines and responsibility overlaps.
Calculate coverage without counting overlap twice
Use the union of two duty windows to find the uncovered part of a service day.
Find a recovery frontier with phase-specific role coverage
Distinguish verified data from released service when a later operator window is missing.
Count a response deadline only through active service minutes
Carry unused active minutes across an excluded break under an explicit local clock rule.
Calculate a service window that crosses midnight
Use day-qualified timestamps to avoid a negative or shortened overnight duration.
Check whether a duty overlap fits the required handover
Fit a sequential briefing and access check into the intersection of two duties.