How it works
Pick a start date, choose whether to go forward or back, and enter any mix of years, months, weeks, and days. The calculator moves the date by the years and months first, then by the weeks and days, and shows the new date and its day of the week.
It counts calendar days, the way you’d count on a wall calendar: every day counts, weekends and holidays included. Only dates are used, never times, so time zones and daylight saving changes can’t shift the answer by a day.
The formula
- Months: months to move = years × 12 + months.
- Move by the months: keep the day of the month and change the month (March 15 plus 2 months is May 15). If the new month is too short for that day, use its last day instead, so January 31 plus 1 month is February 28, or February 29 in a leap year.
- Days: days to move = weeks × 7 + days.
- Move by the days: count that many days forward (or back) from the date in step 2.
Subtracting works the same way, moving back instead of forward.
To count days by hand, the steps use the day of the year (January 1 is day 1, December 31 is day 365, or 366 in a leap year). Add the days to it, and if the total runs past the end of the year, take away that year’s days and carry on into the next. Going back works the same way, borrowing days from earlier years.
Leap years follow the Gregorian calendar: a year divisible by 4 is a leap year, except years divisible by 100, unless they’re also divisible by 400. So 2000 was a leap year and 2100 won’t be.
Worked example
Want this with your own numbers? See Show the work above.
What’s the date 1 year, 2 months, 3 weeks, and 4 days after October 1, 2026?
- Turn the years into months: 1 × 12 + 2 = 14 months.
- Move by the months: October 1, 2026 plus 14 months is December 1, 2027.
- Turn the weeks into days: 3 × 7 + 4 = 25 days.
- Move by the days: December 1, 2027 plus 25 days is December 26, 2027, a Sunday.
That’s 451 days after October 1, 2026 in all.
FAQ
What date is 90 days from today?
Leave the start date as today, choose Add, and enter 90 days. The start date counts as day 0, so tomorrow is 1 day from today and the 90th day after today is the answer. If you need to count today as day 1 (some deadlines do), enter one day fewer.
What happens when I add a month to January 31?
There’s no February 31, so the calculator uses the last day of February: February 28, or February 29 in a leap year. The same goes for any day that a month doesn’t have, such as May 31 minus 1 month, which is April 30. Spreadsheets like Excel’s EDATE function and most programming libraries work the same way.
Why are years and months added before days?
Because the order can change the answer near the end of a month. January 30, 2027 plus 1 month is February 28, and 1 more day is March 1. Adding the day first gives January 31, and then 1 month gives February 28. Adding years and months first is the usual convention in calendars and software, and it’s what this calculator always does.
Is a month the same as 30 days?
No. Months are calendar months, so 1 month after March 15 is April 15 (31 days later) and 1 month after April 15 is May 15 (30 days later). If you need exactly 30 days, enter 30 in Days instead.
Does it skip weekends or holidays?
No. It counts every calendar day. Business days depend on which public holidays apply where you are, which differ by country and change from year to year, so they aren’t included.
How far back or forward can I go?
Any date from January 1, 1600 to December 31, 2200, using the Gregorian calendar, with up to about 100 years in each field (100 years, 1,200 months, 5,200 weeks, or 36,525 days). Most countries switched to the Gregorian calendar between 1582 and 1923, so dates before a country’s switch won’t match the calendar it used at the time.
Sources
- Years and months first, then days, and the month-end rule: dateutil documentation, relativedelta
- Moving a date by whole months: Microsoft Support, EDATE function
- Day counts and weekdays from the Julian Day: Jean Meeus, Astronomical Algorithms, 2nd edition, chapter 7
- The 400-year Gregorian cycle of 146,097 days: Edward M. Reingold and Nachum Dershowitz, Calendrical Calculations
Cite this page
APA (7th edition)
Mathlark. (2026, October 1). Date calculator. https://mathlark.com/everyday/date-calculator/
MLA (9th edition)
"Date Calculator." Mathlark, 1 Oct. 2026, mathlark.com/everyday/date-calculator/.