ガイド Business days & SLA

Business days, SLA deadlines, and month-end rollovers: four date bugs to avoid

What happens when a 3-business-day SLA starts on Wednesday, or a monthly renewal on Jan 31 hits February? Explicit rules prevent silent schedule drift.

Open Dates calculatorTest any start date and weekday offset cleanly in your browser.
読了時間
About 7 min
用途
納品前のセルフチェック
更新日
2026-11-17

まず覚えること

Keep pure calendar math in UTC year-month-day so daylight saving cannot drop a day, and recheck statutory holidays before locking legal or payroll dates.

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.

Calendar vs. Monday–Friday offsets starting in late November 2026
Start Date+3 Calendar Days+3 Weekdays (Mon–Fri)Elapsed Calendar Span
Mon, 2026-11-23Thu, 2026-11-26Thu, 2026-11-263 days
Wed, 2026-11-25Sat, 2026-11-28Mon, 2026-11-305 days
Fri, 2026-11-27Mon, 2026-11-30Wed, 2026-12-025 days
Sat, 2026-11-28Tue, 2026-12-01Wed, 2026-12-024 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.

納品前チェック

納品前チェック

次のステップ

ツールを開いて作業を完了

Test any start date and weekday offset cleanly in your browser.

Open Dates calculator