Calendar Calculator - Add or Subtract Years, Months, Days
Calculate dates by adding or subtracting years, months, weeks, or days. Handles leap years and month-end dates automatically for accurate deadline planning.
Calendar Calculator
Documentation
What Is a Calendar Calculator?
A calendar calculator finds a new date by adding or subtracting years, months, weeks, or days from a starting date. It handles calendar rules automatically, such as leap years and months of different lengths, so the result is always a real date.
How to Use the Calendar Calculator
- Enter a start date, or use today's date.
- Choose a time unit: years, months, weeks, or days.
- Enter an amount, such as 90 or 6. It must be a whole number of zero or more.
- Choose add or subtract.
- Read the result date.
The result updates as soon as any value changes.
Date Calculation Formula
The calculator uses a different rule for each time unit.
Years. The calculator adds or subtracts the amount from the year number and keeps the month and day the same. The exception is February 29. If the start date is February 29 and the target year is not a leap year, the result becomes February 28.
Months. The calculator adds or subtracts the amount from the month number, carrying extra months into the year (for example, month 13 becomes January of the next year). It keeps the same day of the month where possible. Sometimes the target month is shorter than the start day. Adding one month to January 31 is one such case. The result then becomes the last day of the target month.
Weeks. One week equals seven days. The calculator multiplies the amount by seven and adds or subtracts that many days.
Days. The calculator adds or subtracts the exact number of days. It counts every day in between, including February 29 in a leap year.
Leap year rule. A year is a leap year if it can be divided evenly by 4, unless it can also be divided evenly by 100. A year divisible by 100 is still a leap year if it can also be divided evenly by 400. Under this rule, 2024 is a leap year, 1900 is not, and 2000 is.
Supported date range. The calculator works with dates from January 1, year 1 CE, through December 31, year 9999 CE. It cannot produce a date before year 1 CE, so BCE dates are not supported. A calculation that would land outside this range shows an error instead of a result. The calculator always applies the modern Gregorian calendar, even to dates before 1582, the year most of Europe adopted it. Two-digit years mean what they say: year 50 is year 50, not 1950. Historical records from before 1582 may use a different calendar, so results for very old dates may not match those records.
Worked example
Adding days. Start date January 1, 2024. Add 90 days. Result: March 31, 2024. The 90 days run through a February with 29 days, because 2024 is a leap year. The same sum from January 1, 2023 gives April 1, 2023, because February 2023 has only 28 days.
Adding months. Start date January 15, 2023. Add 36 months. Result: January 15, 2026. Thirty-six months is exactly three years, so the day number does not change.
Month-end clamp. Start date January 31, 2023. Add 1 month. Result: February 28, 2023. February 2023 has only 28 days, so the calculator moves the result back to the last day of February instead of rolling into March.
Leap day plus a year. Start date February 29, 2024. Add 1 year. Result: February 28, 2025. 2025 is not a leap year, so February 29 does not exist that year.
Subtracting years. Start date June 15, 2025. Subtract 25 years. Result: June 15, 2000.
Common Uses for Date Math
Project teams use date math to set delivery deadlines and sprint end dates. Lenders use it to find loan maturity dates and payment schedules. Event planners use it to set dates for weddings and conferences months ahead of time. Legal contracts rely on it for notice periods and expiration dates. Patients and clinics use it to track medication refill dates and follow-up appointments.
Frequently asked questions
How do I find the date 90 days from today? Enter today's date, set the unit to days, enter 90, and choose add. The calculator returns the exact date, adjusting for the varying lengths of the months in between.
Does the calculator handle leap years? Yes. It checks whether a year has 366 days using the standard leap year rule and adjusts February 29 calculations to February 28 when the target year is not a leap year.
What happens when the target month is shorter than the start date's day number? The result moves to the last valid day of that month. Adding one month to January 31 gives February 28 in most years, or February 29 in a leap year, because February never has 31 days.
Can the calculator work with BCE dates? No. The calculator only supports dates from year 1 CE through year 9999 CE. A calculation that would produce a date before year 1 CE returns an error instead of a result.
Does the calculator skip weekends and holidays? No. It counts every calendar day, including weekends and holidays. A separate business-day or workday calculator is needed to exclude them.
What is the difference between adding 30 days and adding 1 month? Adding 30 days always moves forward exactly 30 calendar days. Adding 1 month moves to the same day number in the next month, which can be 28, 29, 30, or 31 days later depending on the months involved. The two operations usually give different results.