01 / Business days
T+3 business days: why starting on Wednesday pushes past Monday
Service-level agreements, release freezes, and support queues routinely promise “within N business days.” Because Saturday and Sunday are skipped, shifting a start date by two days can change the calendar span by much more.
Walk through an exact November 2026 week: starting on **Wednesday, Nov 25, 2026**, adding `3 weekdays` counts Thu Nov 26 (1), Fri Nov 27 (2), skips Sat Nov 28 and Sun Nov 29, and lands on **Monday, Nov 30, 2026**—five calendar days later.
Teams also differ on submissions made over the weekend: some treat Monday as day 0 (intake day) and Tuesday as business day 1, while others count Monday itself as day 1. State both the intake rule and “Monday–Friday, excluding local public holidays” directly in any schedule.
| Start Date | +3 Calendar Days | +3 Weekdays (Mon–Fri) | Elapsed Calendar Span |
|---|---|---|---|
| Mon, 2026-11-23 | Thu, 2026-11-26 | Thu, 2026-11-26 | 3 days |
| Wed, 2026-11-25 | Sat, 2026-11-28 | Mon, 2026-11-30 | 5 days |
| Fri, 2026-11-27 | Mon, 2026-11-30 | Wed, 2026-12-02 | 5 days |
| Sat, 2026-11-28 | Tue, 2026-12-01 | Wed, 2026-12-02 | 4 days |
02 / Month-end & leap years
Why adding one month to Jan 31 should not overflow into March 3
Never approximate “one month” by adding 30 days. Seven months have 31 days, four have 30, and February has 28 or 29—adding 30 six times drifts three to four days off the billing anchor.
A subtler bug hits naive `Date.setMonth()` code: adding 1 month to `2026-01-31` overflows to **2026-03-03** because February 2026 ends on day 28. Billing and contract conventions clamp to the last valid day of the target month (`2026-02-28`, or `02-29` in leap years).
Recall the full Gregorian leap-year rule: a year is a leap year if divisible by 4 **and** not by 100, unless also divisible by 400. So 2000, 2024, and 2028 are leap years; 1900 and 2100 are not.
03 / Time zones & DST
Dividing local timestamps by 86,400,000 drops a day on spring DST switchovers
A classic bug in hand-written date scripts is `Math.floor((end - start) / 86400000)` using local midnight timestamps. In any zone observing Daylight Saving Time, spring-forward Sunday is only 23 hours long.
Subtracting local midnight on Saturday from local midnight on Sunday yields 23 hours (`0.9583` days), which `Math.floor` truncates to **0 days**. Dates converts every `YYYY-MM-DD` input into zero-offset UTC midnight (`Date.UTC(y, m - 1, d)`), where every calendar day is strictly 86,400 seconds.
04 / Compliance scope
When to cross-check against official holiday calendars
Regional public holidays, bank settlement calendars, and statutory substitute working weekends (common in mainland China around Lunar New Year and National Day) cannot be derived from Monday–Friday logic alone.
Use Dates to establish the clean calendar-day and weekday baseline first, then overlay the applicable jurisdiction's official holiday schedule before committing payroll, tax, or contract notice dates.
Pre-delivery checklist
Pre-delivery checklist
Next step
Open the tool and finish the job
Test any start date and weekday offset cleanly in your browser.
Open Dates calculator