Skip to content
Sumetrio

Date calculator

Add to or subtract from a date. Month steps clamp to the end of the target month, and the tool tells you when that has happened rather than leaving you to notice.

Direction

Result

Resulting date
December 23, 2026
Day of the week
Wednesday
Days moved
30

How this is calculated

step 1: apply years, then months, clamping to the month end
step 2: apply weeks and days as a plain day count

The order is part of the answer. Years and months are applied first, then weeks and days, because doing it the other way round can land in a different month and give a different result. The page shows the shift in total days so you can check it.

clamping
— keeping the day within the target month, so 31 becomes 30 or 28
day shift
— the signed number of days between the start and the result

Worked example

Take 30 January 2023 and add one month and two days. The month step gives 28 February, because February has no 30th, and the two days then land on 2 March. Had the days been applied first, 30 January plus two days would be 1 February and the month step would give 1 March — a different answer. That is why the order is stated rather than left implicit.

How to use it

  1. Enter the starting date and choose whether to add or subtract.
  2. Fill in any combination of years, months, weeks and days; leave the rest at zero.
  3. Watch for the end-of-month note. If it appears, the day of the month could not be preserved and was clamped.

Limitations and assumptions

  • Month arithmetic clamps rather than overflows: 31 January plus one month is 28 February, not 3 March. This is the convention most date libraries and spreadsheets use, but it is a convention, not a law.
  • Clamping is not reversible. Adding a month to 31 January and then subtracting one gives 28 January, not 31. Every clamping rule behaves this way; there is no rule that is both clamping and reversible.
  • Years and months are applied before weeks and days. A different order can give a different date, as the worked example shows.
  • Working days, public holidays and business-day conventions are not applied. This moves calendar dates only.
  • The calendar is the proleptic Gregorian one, so results before 1582 will not match Julian-calendar records.

Questions

What is 31 January plus one month?

28 February, or 29 February in a leap year. February has no 31st, so the day is clamped to the last day of the month. The alternative — overflowing to 3 March — is what a naive day-count would give, and it surprises almost everyone.

Why is adding then subtracting a month not reversible?

Because clamping loses information. 31 January becomes 28 February, and February's 28th maps back to January's 28th, not its 31st. Any rule that keeps the result inside the target month has this property.

Does the order of years, months and days matter?

Yes, whenever clamping is involved. This tool applies years and months first, then weeks and days, and the worked example shows a case where the two orders differ by a day.

Can I find a date a number of working days away?

Not with this tool — it moves calendar dates. Working-day arithmetic needs a holiday calendar for your country and region, which this site does not invent.

Related calculators

This page has not yet had an editorial review.