Date Add / Subtract Calculator

Add or subtract a precise mix of years, months, weeks, and days from a date.

Enter your values

Change any field. The result is recalculated on this device.

Formula, example and assumptions
Resulting date9 November 2026

Starting point and direction

Calendar interval

Your result

Local calculation
Resulting date9 November 2026

The result moves your date by the chosen calendar interval. Years and months are applied together before weeks and days, with month-end dates adjusted to fit.

Starting date
9 October 2026
Operation
Add
See how this is calculated
Check the inputs and method

These are your current inputs, not the worked example further down the page.

Starting date
9 October 2026
Operation
Add
Years
0
Months
1
Weeks
0
Days
0

Method

Apply signed years and months to find the target year/month. New day = min(original day, days in target month). Then add signed (7 × weeks + days). “Subtract” reverses the signs of all entered components.

Read the worked example and assumptions

How this calculation works

Move a date by a calendar period containing years, months, weeks and days. Unlike a fixed-day offset, a month changes the calendar month and can end on its last valid day. The order is deliberate: years and months establish the target month, the day is clamped if necessary, then weeks and days are applied.

Apply signed years and months to find the target year/month. New day = min(original day, days in target month). Then add signed (7 × weeks + days). “Subtract” reverses the signs of all entered components.

Worked example

This example uses illustrative inputs. Your current result is shown above.

Start on 31 January 2024, choose Add, and enter 0 years, 1 month, 0 weeks and 0 days. February 2024 ends on day 29, so min(31,29) = 29 and the result is 29 February 2024.

Assumptions and limits

  • Component fields are nonnegative whole numbers; the operation selector chooses the direction.
  • Weeks always contain seven calendar days. Holidays and weekends are not skipped.
  • End-of-month clamping can make an add followed by a subtract nonreversible; a calendar month is not a fixed 30-day duration.

Questions people ask

Why does a month added to the 31st not always end on the 31st?

If the target month has fewer days, its last valid date is used. Remaining week/day offsets are applied after that clamp.

Will subtracting the same month restore my original date?

Not always. Once clamping changes the day, the original day is no longer stored. Use a fixed day offset when exact reversibility of elapsed days is your intended operation.

Related calculators