How to Count Months and Days Forward or Back From a Date
18 months before November 11, 2026 is May 11, 2025, and 15 days after October 22 is November 6. Count both by hand, month ends and leap years included.
To count months forward or back from a date, change the month and keep the day of the month. 18 months before November 11, 2026 is May 11, 2025. To count days, use up the days left in the current month first, then carry the rest into the next one. 15 days after October 22, 2026 is November 6.
That covers most dates. The exceptions are dates near the end of a month, where the day you'd land on doesn't exist, and February in leap years. Both have a rule, and the date calculator follows the one described below.
Counting months
Split a large count into years and months first. 18 months is 1 year and 6 months.
- Move the year by the whole years.
- Move the month by the months left over.
- Keep the day of the month.
To go back 18 months from November 11, 2026, go back one year to November 11, 2025, then six more months to May 11, 2025.
When you go back past January, add 12 to the month number and take one off the year. Going back 6 months from March 2027, month 3 minus 6 is −3. Add 12 and you get 9, which is September 2026. Going forward past December works the other way. Subtract 12 and add one to the year.
Here are the common counts from Wednesday, November 11, 2026. If you are reading this on another day, the steps are the same from your own date.
| Count | Date |
|---|---|
| 3 months back | Tuesday, August 11, 2026 |
| 6 months back | Monday, May 11, 2026 |
| 12 months back | Tuesday, November 11, 2025 |
| 18 months back | Sunday, May 11, 2025 |
| 3 months ahead | Thursday, February 11, 2027 |
| 18 months ahead | Thursday, May 11, 2028 |
A month is a calendar step and has no fixed number of days. 12 months back from November 11, 2026 is 365 days back, but 12 months back from November 11, 2028 is 366, because February 29, 2028 falls inside that year. The 18 months back to May 11, 2025 add up to 549 days.
When the day doesn't exist
One month after January 31 would be February 31, which isn't a date. Tools handle this in one of two ways:
- End of month. Stop on the last day of the shorter month. January 31, 2026 plus 1 month is February 28, 2026.
- Roll over. Count the extra days into the next month. February 31 becomes March 3, 2026. JavaScript's built-in Date object does this if you set its month to February.
The site's date calculator uses the end-of-month rule. Its code takes the day of the month from your start date and, if the target month is too short, uses that month's last day instead. The leftover days are dropped. Some results:
| Start | Change | Result |
|---|---|---|
| January 31, 2026 | + 1 month | February 28, 2026 |
| January 31, 2028 | + 1 month | February 29, 2028 |
| May 31, 2026 | + 1 month | June 30, 2026 |
| August 31, 2026 | + 6 months | February 28, 2027 |
| March 31, 2026 | − 1 month | February 28, 2026 |
| August 31, 2026 | − 18 months | February 28, 2025 |
The calculator always counts from the start date, which matters when you chain months. January 31 plus 2 months is March 31. If you add 1 month, get February 28, and then add 1 month to that, you land on March 28, three days earlier. To count several months, add them in one step from the original date.
Leap years
February has 29 days in a leap year. A year is a leap year when it divides by 4, except for century years, which have to divide by 400. 2024 and 2028 are leap years and 2026 isn't. 2000 was a leap year, and 1900 and 2100 aren't.
February 29 follows the end-of-month rule. February 29, 2028 plus 1 year is February 28, 2029, because 2029 has no February 29. Plus 4 years it is February 29, 2032.
Counting days
Days are simpler, because every day exists. You only need the length of each month: 30 days for April, June, September and November, 28 for February (29 in a leap year), and 31 for the rest.
Forward. Subtract the start day from the length of its month to get the days left in that month. Take those off your count, then move into the next month.
15 days after October 22, 2026:
- October has 31 days, so 31 − 22 = 9 days take you to October 31.
- 15 − 9 = 6 days are left.
- Six days into November is November 6.
For a longer count, keep going month by month. 90 days after November 11, 2026:
- November has 30 days: 30 − 11 = 19 days to November 30, leaving 71.
- December uses 31, leaving 40.
- January uses 31, leaving 9.
- That lands on February 9, 2027.
Back. When the count is smaller than the day of the month, subtract. 15 days before October 22 is October 7. When it is larger, go back to the last day of the previous month first. For 30 days before November 11, 2026, the first 11 days take you back to October 31, and the other 19 take you to October 12.
The weekday gives you a quick check. Every 7 days the weekday repeats, so 15 days is 2 weeks and 1 day, and the weekday moves one forward. October 22, 2026 is a Thursday and November 6 is a Friday. 90 days is 12 weeks and 6 days, so Wednesday, November 11 becomes Tuesday, February 9.
"15 days after" counts the start date as day 0. If you want a span in which the first and the last day both count, such as a 15-day booking that starts on October 22, the last day is October 22 plus 14, November 5.
A month is not 30 days
January 31, 2026 plus 30 days is March 2. January 31 plus 1 month is February 28. If a contract, a notice period or a subscription says "one month", count calendar months. If it says "30 days", count days.
When a count mixes both, the order matters at the end of a month. The date calculator adds years and months first, then weeks and days. January 30, 2026 plus 1 month and 1 day is March 1. The month gives February 28, and the day after that is March 1. Adding the day first would give January 31, then February 28.
Doing it with the calculators
In the date calculator, pick the start date, choose Add or Subtract and fill in the years, months, weeks and days. Enter 18 months, subtract it from November 11, 2026, and it returns Sunday, May 11, 2025, 549 days before the start date. The note under the result says that a month too short for the start day ends on its last day. The calculator works on calendar dates and never on clock times, so your time zone and daylight saving changes don't move the answer.
For days only, the day counter adds or subtracts a number of days from a date. It also counts the days between two dates and has a box to include the end date. For a birthday or another age question, the age calculator counts whole months the same way. To count hours between two clock times instead of days, read how many hours between two times.