HOW IT WORKS
Calendar duration & date offset rules
All date arithmetic runs in UTC date-only mode so Daylight Saving Time transitions never cause 23-hour or 25-hour off-by-one errors.
Days Between Two Dates
By default, the span counts whole days between the start and end date (excluding the end date). Enable “Include end day” to count both endpoints inclusively, such as for multi-day event or leave durations.
Total Days = |End − Start| + (Include End Day ? 1 : 0)Business Days & Weekends
Business days count Monday through Friday across the selected span, while weekend days count Saturdays and Sundays. Public holidays are not excluded automatically.
Adding or Subtracting Offsets
Years and months are applied first with month-end clamping (e.g., Jan 31 + 1 month = Feb 28 in a common year or Feb 29 in a leap year), followed by exact weeks and days.