Add Days Calculator
Add or subtract days from any date. Calculate future and past dates with business days mode, week breakdowns, and day-of-week results.
About
Date arithmetic errors cascade. A lease ending one day late triggers penalty clauses. A medication schedule shifted by 1 day compounds across 30 doses. This calculator performs exact day addition and subtraction on any calendar date, correctly handling leap years (where February has 29 days when the year is divisible by 4, except centuries not divisible by 400), month-boundary rollovers, and Daylight Saving Time transitions. It does not approximate. It computes using the proleptic Gregorian calendar as implemented by the ECMAScript Date specification (ECMA-262 ยง21.4).
The business days mode excludes Saturdays and Sundays from the count, which matters for contractual deadlines governed by statutes like the UCC or FIDIC. Note: this tool does not account for public holidays, which vary by jurisdiction. Pro Tip: for legal deadlines, always confirm your local holiday calendar separately and add a 1-day buffer for filing systems that close early.
Formulas
The result date Dresult is computed by direct calendar day offset from a start date Dstart:
where n is the signed number of calendar days (n > 0 for future, n < 0 for past). The engine internally calls Date.setDate(Date.getDate() + n), which handles month and year rollovers natively.
For business days mode, the algorithm iterates day-by-day, incrementing a counter k only when the current day-of-week w satisfies:
where 0 = Sunday and 6 = Saturday (ECMAScript convention). The loop terminates when k = |n|.
The leap year predicate L(y) used internally:
The duration breakdown converts the absolute difference ฮt in milliseconds to weeks and remaining days:
where 604800000 = 7 ร 86400000 ms (one week) and 86400000 ms = 24 ร 60 ร 60 ร 1000 (one day).
Reference Data
| Month | Days | Cumulative (Non-Leap) | Cumulative (Leap) | Notes |
|---|---|---|---|---|
| January | 31 | 31 | 31 | Start of Q1 |
| February | 28 / 29 | 59 | 60 | Leap day: Feb 29 |
| March | 31 | 90 | 91 | Start of Q2 (some fiscal) |
| April | 30 | 120 | 121 | Start of Q2 |
| May | 31 | 151 | 152 | - |
| June | 30 | 181 | 182 | Mid-year |
| July | 31 | 212 | 213 | Start of Q3 |
| August | 31 | 243 | 244 | - |
| September | 30 | 273 | 274 | Start of Q4 (some fiscal) |
| October | 31 | 304 | 305 | Start of Q4 |
| November | 30 | 334 | 335 | - |
| December | 31 | 365 | 366 | End of year |
| Leap Year Reference | ||||
| Year 2024 | 366 days (leap) | Divisible by 4 | ||
| Year 2025 | 365 days | Not divisible by 4 | ||
| Year 2100 | 365 days | Century, not รท 400 | ||
| Year 2000 | 366 days (leap) | Century, รท 400 | ||
| Common Periods | ||||
| Fortnight | 14 days | 2 weeks | ||
| Quarter | 90 - 92 days | Varies by months | ||
| Semester | 182 - 183 days | Half-year | ||
| Fiscal Year (US) | 365 / 366 days | Oct 1 - Sep 30 | ||