Guide Date boundary path

Why date ranges are off by one: the boundary, not the arithmetic

A mathematical gap, inclusive calendar dates, Monday–Friday weekdays, and statutory workdays are four definitions. Choose one before reading the result.

Open DatesWrite the definition first, then calculate calendar days, weekends, and weekdays.
Reading time
About 5 min
Best for
Pre-delivery review
Updated
Aug 16, 2026

Remember this

State whether the end date counts. For legal or attendance use, add the applicable regional holiday rules.

01 / Question

Rewrite “how many days?” as an unambiguous question

From August 1 to August 2, the mathematical date gap is one day. If both dates count as occupied days, the range covers two calendar dates. Both answers can be right depending on whether you need distance, hotel nights, or participation days.

Write the definition before calculating: “exclude the end date,” “include both ends,” or “count Monday through Friday only.” That sentence matters more than the calculator control because it decides whether one is added to the mathematical gap.

02 / Boundary

Separate half-open ranges from inclusive ranges

A hotel stay from August 1 to checkout on August 3 is usually two nights because checkout day does not use another night. An event scheduled every day from the 1st through the 3rd usually covers three calendar dates.

The same dates under different definitions
ScenarioStartEndTypical resultBoundary
Hotel nightsAug 1Aug 32 nightsEnd excluded
Event datesAug 1Aug 33 daysBoth ends included
Math gapAug 1Aug 32 daysDifference between dates

03 / Weekdays

Monday through Friday is not the same as statutory workdays

A generic weekday calculation usually skips only Saturday and Sunday. Public holidays, substitute working days, and organization-specific closures require another data source. A Saturday can be a working day, and a Monday can be a public holiday.

Monday–Friday is useful for early project planning and rough estimates. Payroll, attendance, limitation periods, and contract notice calculations must be checked against the official rules for the relevant place, year, and organization.

04 / Time zones

For calendar dates, keep time zones and daylight saving out

If the task cares only about dates, treat inputs as year-month-day instead of subtracting two local-midnight timestamps. During daylight-saving changes, a day can be 23 or 25 hours; dividing elapsed time by 24 hours can produce the wrong date count.

International flights, system logs, and precise countdowns are different: they care about exact instants and require a time zone or UTC offset. Decide whether the question is “how many calendar days?” or “how many hours?” before choosing the calculation.

Pre-delivery checklist

Pre-delivery checklist

Next step

Open the tool and finish the job

Write the definition first, then calculate calendar days, weekends, and weekdays.

Open Dates