Why adding days to a date lands one day off
Calendar days are not 24-hour blocks: DST, month-end clamping, leap years, workday counts and ISO week numbers all move the result by a day.
2026-12-04
“90 days later” means 90 calendar days
A date such as 2026-12-04 has no clock time and no time zone; it is a label on a calendar page. Adding 90 days means turning 90 pages, not adding 90 × 24 hours. The calculator builds every date at 12:00 UTC on purpose: noon is far from both midnights, so a daylight-saving jump of one hour cannot push the stored date into the previous or next day.
Take a timestamp instead—2026-03-01 00:30 in New York—and add 90 × 24 hours in milliseconds. When daylight saving starts, one of those days is only 23 hours long, so the result lands at 23:30 on the day before the expected date, and a naive date formatter reports one day early. That is fine if you meant “exactly 90 days of elapsed time”; it is wrong for a visa window, a notice period or a subscription renewal, which are defined by calendar dates. The trade-off is explicit: calendar arithmetic gives the right day but discards the time of day.
Month-end clamping beats silent overflow
Adding a month is not adding 30 or 31 days; it means “same day number in the next month, or the closest valid one”. 31 January plus one month is 28 February in 2026 and 29 February in a leap year, because February has no 31st. The same clamp applies backwards: 31 March minus one month is 28 February 2026, not 3 March.
Languages differ here. JavaScript's Date.setMonth overflows—31 January plus one month becomes 3 March in a non-leap year—while database interval arithmetic usually clamps. A monthly invoice due on the 31st exposes the difference: clamp and every short month pays on its last day; overflow and the payment slips into the next month. Also keep the anchor date. 31 January plus one month is 28 February, but 28 February plus one month is 28 March, so subtracting and re-adding a month does not return to the 31st.
Leap years follow a three-part rule
A year is leap when it is divisible by 4, except century years, which are leap only when divisible by 400. So 2024 and 2000 are leap, 1900 and 2100 are not. The rule matters at the edges: 29 February 2024 plus one year is 28 February 2025, because the target year has no 29th and the date is clamped to the month's last valid day.
The usual failure is substituting 365 days for “one year”. Across a leap year that shortcut drifts by a day, so a warranty, insurance renewal or eligibility date computed with fixed day counts slowly slides off the anniversary. A second edge case is a 29 February birthday: in non-leap years some jurisdictions treat it as 28 February, others as 1 March. The calculator can only apply the clamp; the legal convention is a separate decision you have to make explicitly.
Workday mode skips weekends, not holidays
Workday mode counts Monday to Friday and steps over Saturday and Sunday. Ten workdays from Friday 4 December 2026 lands on Friday 18 December 2026. The arithmetic is deterministic and ignores everything else: no public holidays, no company shutdown between Christmas and New Year, no regional make-up workdays, and no countries where the weekend is Friday–Saturday.
That makes the result a lower bound on waiting time, not a promise. A “five business days” support SLA that spans a national holiday is really six or seven calendar days, and a sprint plan that crosses a shutdown loses days the tool never saw. The trade-off is deliberate: baking in every country's holiday calendar would make one tool behave differently for every user and turn stale holiday data into wrong answers. Use the workday result as the baseline, then subtract known closures by hand, or use a jurisdiction-specific business calendar.
ISO weeks start on Monday and can cross the year
ISO 8601 numbers weeks with Monday as day one, and week 1 is the week containing 4 January—equivalently, the week containing the first Thursday of the year. As a result, early January can belong to week 52 or 53 of the previous year, and the last days of December can belong to week 1 of the next. On 4 December 2026 the ISO week is 49; 3 January 2027, a Sunday, is still week 53 of 2026, while Monday 4 January 2027 opens week 1 of 2027.
This bites in payroll, sprint labels, logistics slots and any report that groups by week. A US-style convention that starts weeks on Sunday and calls 1 January week 1 will disagree around New Year, sometimes by two weeks, and a simple day-of-year divided by seven is worse. Always print the week-year alongside the week number, because “week 53” alone is ambiguous. The trade-off is that ISO is unambiguous across borders but may not match a local payroll or retail calendar; if a contract names a week number, state which standard it uses.
Two worked examples and the right tool for the question
Take 4 December 2026, a Friday. Add 30 days and you get 3 January 2027, a Sunday: December contributes 27 days up to the 31st, and three more roll into the new year. Subtract two weeks instead and you get 20 November 2026, also a Friday. Both answers cross a boundary—one a year, one a month—which is exactly where mental arithmetic fails; check the weekday and the ISO week together, not just the date.
Choose the tool by the question. Date Add & Subtract Calculator starts from one known day and projects a target, which is what “due in 45 days” or “three months before renewal” asks. Date Difference Calculator measures the gap between two known dates, with the inclusive or exclusive choice that deadlines depend on. Age Calculator turns a birth date into years, months and days as of today, and Time Calculator adds hours, minutes and seconds when the unit is duration rather than calendar. The common mistake is using the difference tool to guess a deadline, then discovering the count is off by one because the start or end day was included twice.