Should you count the start date?
Choose whether to count a start date by naming the thing you are counting.
Try the experimentWhat you’ll learn Choose an endpoint rule based on what is being counted and verify the same-date boundary.
Endpoint counter
Count the gaps, then count the dates
Start on a Monday. Choose how far away the end is and decide whether to count both endpoint labels.
2 elapsed days
- MonStart · zero
- TueCounted
- WedCounted
Each move to a later date contributes one. The starting date is the zero point.
Saved reading
Price a two-night reservation
- Inputs
- Check in Monday January 6 and check out Wednesday January 8 at the usual hotel checkout time.
- Reasoning
- Include the nights starting January 6 and January 7. Wednesday is a checkout boundary. An organiser who attends all three days instead enumerates Monday, Tuesday and Wednesday.
- What the result means
- The booking is two nights. Attendance can be three dates for the same labels.
Mark the endpoints
Measure elapsed date steps from A to B by subtracting the ordered dates. A Tuesday-to-Thursday booking crosses two boundaries. A list of Tuesday, Wednesday and Thursday attendance covers three labels. The arithmetic differs because each question explicitly counts something different.
Distinguish closing from attending
A room booking usually treats checkout as an end boundary, not a paid night in the room. A school activity might count both the opening and closing dates because an activity occurs on each. Write either the last included date or the first excluded date alongside the rule, especially when dates pass through different software.
Same-day tests expose mistakes
A range where start and end are identical has zero elapsed dates and one included date. Working-day rules subsequently filter eligible labels; they do not decide elapsed time. None of these counts determines a local deadline hour or the duration in SI seconds.
Sources and scope
- TC39 · Calendar dates and date arithmetic — Civil-date duration calculation.
- RFC 5545 · Calendar event start and end semantics — A formal example of inclusive start and exclusive end.
Rules for actual deadlines, travel, and payroll depend on the parties. This lesson illustrates civil dates, not hours or business calendars.