An eight-hour calendar contains 300 minutes of events inside its working window. Subtracting that from 480 seems to leave 180 minutes. Yet the entries occupy only 240 distinct minutes, leaving 240 unoccupied. The difference is not extra time created by a planning technique: some events were booked simultaneously.

We built this schedule to distinguish three quantities: summed event duration, occupied time and time with at least two simultaneous commitments. A program computes each quantity and compares the result with a separate minute-by-minute enumeration. These are generated records, not a person's calendar or a measured gain in productivity.

Set the boundary before checking the day

The selected window is October 24, 2026, 09:00–17:00 at the fixed UTC offset +09:00. It contains 480 minutes. Every interval includes its start and excludes its end: an event ending at 10:00 does not overlap one starting at 10:00. This follows the event endpoint convention in RFC 5545 section 3.6.1; it is not a claim that this small program implements the whole calendar standard.

We clip each event to the selected window before calculating availability. The final handoff lasts until 17:30, but only its first 45 minutes belong in this window. Adding its entire 75 minutes would subtract time outside the day we selected.

Six events that cannot all be attended as written

ID and invented activityStart–end, +09:00Full durationInside 09:00–17:00
A Administration09:00–09:3030 min30 min
B Draft a comparison09:30–11:0090 min90 min
C Meeting10:15–10:4530 min30 min
D Review call10:30–11:1545 min45 min
E Lunch12:00–13:0060 min60 min
F Handoff16:15–17:3075 min45 min

The full durations add to 330 minutes. Clipping gives 300 event-minutes. Neither is the time occupied by the combined entries inside the window. In this analysis, overlapping events reserve the same minutes more than once; no assumption is made that one person can attend them all.

Why the overlap is 45 minutes but the excess count is 60

The occupied stretches are 09:00–11:15 (135 minutes), 12:00–13:00 (60) and 16:15–17:00 (45). Their union is 240 minutes. The gaps are 11:15–12:00 (45) and 13:00–16:15 (195), also totaling 240.

From 10:15 to 10:30, B and C overlap for 15 minutes. From 10:30 to 10:45, B, C and D overlap for 15. From 10:45 to 11:00, B and D overlap for 15. Therefore 45 distinct minutes have conflicting commitments.

But the triple-booked section contributes 30 extra event-minutes: it was counted three times when it should count once toward occupied time. The excess is 15 + 30 + 15 = 60. Subtract that from the clipped sum, 300 − 60 = 240. Adding every pair's overlap would instead give 75 and subtract too much, because the triple section belongs to three pairs.

Summed durations can be useful for other questions, such as event-by-event workload. For one person's calendar occupancy, use the union. For resolving simultaneous commitments, inspect the conflict intervals and their active event IDs.

Move the events, then calculate again

For a computed repair, keep A, B, E and F in place. Move C to 13:00–13:30 and D to 13:30–14:15. This is a fictional adjustment, not permission to change anyone else's meeting. A real shared event needs agreement before it moves.

After this change, the summed duration inside the window remains 300 minutes, occupied time becomes 300 and conflict time becomes zero. Unoccupied time drops from 240 to 180 minutes. The largest gap is now 14:15–16:15, or 120 minutes. The handoff still extends 30 minutes beyond 17:00; fixing the overlaps did not remove that boundary issue.

A 210-minute uninterrupted task fits neither the original 195-minute gap nor the repaired 120-minute gap, even though the original gaps sum to 240. Before assigning work, resolve the conflicts, protect required breaks and travel, then decide whether a smaller deliverable can fit. An unoccupied minute is only a calendar observation, not evidence that you control it or can work throughout it.

Midnight needs a date, not a guessed rollover

A second window runs from October 24 at 23:00 to October 25 at 02:00, still +09:00. Event A runs 23:30–00:30 and event B 00:15–01:15. Their lengths add to 120 minutes, but their union occupies 105, with 15 minutes of overlap. The 180-minute window has 75 unoccupied minutes, in gaps of 30 and 45.

Splitting the calculation at midnight assigns 30 occupied minutes to October 24 and 75 to October 25. These add to the same 105; an event is not copied in full into both dates. The input always carries the end date. A same-date end earlier than its start is rejected instead of silently assuming the next day.

Check endpoints, offsets and absent entries

Two adjacent events, 09:30–10:00 and 10:00–10:30, occupy 60 minutes with no conflict. Two differently labeled entries at 09:00–09:30 +09:00 and 00:00–00:30 UTC describe the same half hour: their union is 30 minutes, not 60. Matching slots do not by themselves prove that an entry should be deleted; two distinct commitments may have been booked there.

Python's datetime documentation distinguishes timestamps with timezone information from ambiguous ones without it. This program converts explicit offsets to UTC for comparison. It does not infer an IANA region, resolve ambiguous daylight-saving transitions, import all-day entries or expand recurring meetings.

The empty-input case returns an unoccupied 60-minute window, meaning only that no entries were supplied. The outside-window case has two events touching its boundaries but no occupied minute inside. Missing records must not be interpreted as proof that the actual person is free.

Resolve weekly starts before adding them to the day

“Every Sunday at 09:00 in New York” does not always mean 168 hours after the previous start. Across the March 2026 clock change, the same 09:00 starts are 167 hours apart. Adding a fixed 168 hours instead gives a 10:00 local start. This interval-merging program cannot decide which series an organiser meant.

Before using it, choose the recurrence condition, resolve any missing or repeated local start, then obtain each event's dated start and end. The separate weekly comparison provides eight generated series, both rules' UTC starts and a blank invitation note. It includes a skipped 02:30 candidate and a half-hour clock change. Those examples resolve starts; they do not supply event durations or permission to move a shared meeting.

Once the intended intervals are unambiguous, return here to clip them to the chosen window and check their union. Do not treat a recurrence's frequency, a meeting's duration and the day's unoccupied time as the same number.

Reproduce the calculation and inspect its limits

Download the event CSV, Python code and full results. The JSON also preserves every selected window, including the empty case. With Python 3 already available, run python3 calendar-check.py. It uses fixed generated inputs; it reads no files or calendar accounts and requires no network or extra package.

Seven cases have explicitly specified expected totals. Interval merging is cross-checked by enumerating whole minutes, and the overnight total is checked against both date slices. Nine altered inputs are rejected: missing offset, second-level precision, invalid date, zero duration, reversed event, duplicate ID, missing end, reversed window and a window longer than this model's 24-hour limit. These are limits of this example, not a list of all valid calendar formats.

The optional planning worksheet can record an intended result and a later adjustment. It does not supply the calculation evidence; the complete generated cases above do. A useful revision states which event moved, which conflict disappeared and how the remaining gaps changed.