Add or Subtract From a Date
Adding a month to 31 January does not give 31 February, because there is no such day. Where the overflow goes is a real decision, and different systems make it differently.
Result
1 December 2026
- Result
- Tuesday, 1 December 2026
- Day of week
- Tuesday
- Days from the start
- 102
- ISO format
- 2026-12-01
- Week number
- 49
- Months are added as calendar months, so a month after 31 January is 3 March in a normal year — there is no 31 February and the overflow rolls forward. Adding 30 days instead gives 2 March. Both are defensible and they differ.
- Leap years are handled, so counting across February does not lose or gain a day.
About date arithmetic
Adding days is unambiguous. Adding months is not, and it is the source of most date bugs in software. A month after 31 January is 31 February, which does not exist. This rolls the overflow forward to 3 March in a normal year, which is what PHP and most standard libraries do. Adding 30 days instead lands on 2 March. Both are defensible, and they differ.
That difference matters for anything contractual. "Thirty days from invoice" and "a month from invoice" are not the same deadline, and which one applies depends on the wording rather than on arithmetic. The same is true of notice periods and rental terms.
Years behave the same way at one specific point: a year after 29 February 2024 is 1 March 2025 by this reckoning, since 2025 has no 29 February.
The day of the week is shown because it is frequently the real question — a deadline falling on a Saturday is a different deadline in practice. The ISO week number is there for anyone working to a business calendar.
What it works out
- Adding or subtracting days, weeks, months and years
- The day of the week it lands on
- The ISO week number
- Total days from the starting date
The formula
Apply years, then months, then weeks, then days — in that order
Three months after 21 August 2026 is 21 November 2026. Ten days after that is 1 December 2026, a Tuesday — 102 days from where we started.
The order matters when months are involved. Applying months before days can land on a different date from applying days first, because the month step depends on which month you are in. Years, then months, then weeks, then days is the conventional order and the one used here.
The overflow rule is the part worth knowing. A month after 31 January becomes 3 March in a normal year: the calculation asks for 31 February, finds it does not exist, and rolls forward by the excess. A month after 31 March gives 1 May by the same logic.
If you need exactly thirty days rather than a month, use the days field. The two are different by one to three days depending on the month, and for a payment deadline that difference is real.
- Months
- Calendar months, which vary in length. Overflow rolls forward.
- Weeks
- Exactly seven days each. No ambiguity.
- Week number
- The ISO week of the year, for anyone on a business calendar.
A worked example
Three months and ten days after 21 August 2026.
That works out to 1 December 2026 .
- Result
- Tuesday, 1 December 2026
- Day of week
- Tuesday
- Days from the start
- 102
- ISO format
- 2026-12-01
- Week number
- 49
Questions
What date is 90 days from today?
Enter your start date and put 90 in the days field. Days are unambiguous, unlike months — three months and ninety days are usually different dates.
What happens when I add a month to 31 January?
It rolls forward to 3 March in a normal year, because 31 February does not exist and the excess carries over. Adding 30 days instead gives 2 March.
Is "one month" the same as 30 days?
No, and the difference matters for contracts. Months run 28 to 31 days, so a monthly deadline and a 30-day deadline land on different dates. Which applies depends on the wording.
How does it handle leap years?
Correctly — February gets its extra day when the year has one. A year after 29 February 2024 is 1 March 2025, since 2025 has no 29 February.
Why does it show the day of the week?
Because it is often the real question. A deadline landing on a Saturday behaves differently from one landing on a Tuesday, and it is easy to miss.
What is the week number?
The ISO week of the year, running 1 to 52 or 53. Businesses and manufacturers schedule by it, and it is a more compact way of naming a period than a date range.