Comparing two one-month shifts with one two-month shift
Two one-month shifts in a row can end on a different date than one two-month shift. The first step may clamp the day, and the second step starts from the clamped value.
Two paths to the same month
Starting at 2024-01-31, there are two ways to reach March. One path adds one month, then adds another month to the result. The other path adds two months in a single step. In a world where every month had 31 days the paths would agree. With real month lengths they do not, because each shift applies its clamp to whatever date it receives. The sequential path passes through February, where the 31st is clamped, and the second step then starts from that clamped day. The direct path never visits February as a date, so the 31st survives until it meets March.
Following the sequential path
The first step takes 2024-01-31 plus one month. February 2024 has 29 days, so the tool clamps the day and returns 2024-02-29. The second step takes 2024-02-29 plus one month. March has a 29th, so no clamping is needed and the tool returns 2024-03-29. The day number has fallen from 31 to 29 and does not recover, because each later step receives the 29th as its source. The loss occurred at the first step, and the second step only carried it forward. Adding a third month gives 2024-04-29, and a fourth gives 2024-05-29, so by May the chained date sits two days before the 31st it started from, even though May has a 31st available.
Following the direct path
Adding two months to 2024-01-31 in one operation gives March directly. March has 31 days, so the 31st exists and the result is 2024-03-31. The two paths end two days apart, March 29 and March 31, from the same starting date and the same total of two months. Neither answer is a calculation error. They follow the tool's rule: clamp to the destination month length, using the source date each time. Which result is right depends on what the schedule means by two months later. A lease that says the same day two months on would expect March 31, while a process that is defined as one monthly step repeated twice would produce March 29. Neither reading is unreasonable, so a written schedule should state which one it uses.
A second month-end pair
Start from 2023-08-31. Adding one month gives 2023-09-30 because September has 30 days. Adding another month to that gives 2023-10-30. The direct two-month shift from 2023-08-31 lands on October, where the 31st exists, and returns 2023-10-31. The gap is one day this time, equal to the difference between 31 and 30. A three-month chain from January 31, 2024 shows more drift. Sequential steps give 2024-02-29, 2024-03-29 and 2024-04-29, while the direct three-month shift gives 2024-04-30, a one-day gap because April has 30 days.
Why drift accumulates in a recurring schedule
Monthly reminders, payments and reviews are often generated by repeatedly adding one month to the last date. If the first date is on the 31st, the series drifts to the 29th, 28th or 30th as soon as a short month appears, and it stays there. A schedule that began as the 31st of each month becomes the 29th of each month for the rest of the series. The drift is one-way because clamping lowers the day number and ordinary shifts never raise it. Over a year, a single February can change every later date in a chain. A payment plan with twelve monthly steps from 2024-01-31 would show all twelve dates on the 29th if it chains, while the anchored version shows the 31st in the seven months that have one. The two lists differ in most rows, yet each row looks plausible by itself, so the problem is easy to miss without a comparison.
Quarterly steps from November 30
The drift grows with larger steps too. Start at 2024-11-30 and add three months: February 2025 ends on the 28th, so the result is 2025-02-28. Add three more months to that and the result is 2025-05-28. The direct six-month shift from 2024-11-30 reaches May, which has a 30th, and returns 2025-05-30. The chain has lost two days against the direct shift, and every later quarter in the chain stays on the 28th. A quarterly reporting calendar built this way would show the 28th for the rest of the series, although the intended day was the 30th. Each additional short month the chain passes through can lower the day number again, and nothing in the chain ever raises it.
Anchor each date to the start
The standard fix is to compute every date from the original start. The k-th occurrence is the start date plus k months, using one shift of k months each time. For the series starting on 2024-01-31, the first four occurrences are 2024-02-29, 2024-03-31, 2024-04-30 and 2024-05-31. The 31st returns whenever the month allows it, and shorter months clamp only their own date. The cost is that the gap between occurrences is not constant, which is true of any monthly schedule on a fixed day of the month. February to March is 31 days in this series and March to April is 30, so any rate or fee that depends on the exact number of days between dates will vary from row to row even though the schedule is regular by month.
Check the choice with a known pair
To see which approach another system uses, test it with 2024-01-31. Add one month and then one more month. If the result is March 29, the system chains its shifts. Add two months directly. If the result is March 31, the system uses the original day. Comparing the two answers tells you at once whether a tool, spreadsheet or code library has the drift. This test takes two entries and reveals a difference that otherwise appears only months later, when a payment date seems to have moved.
What these controls describe
The controls describe the clamping behavior of this tool and nothing more. They do not choose a scheduling policy for another system, and they do not apply business-day rules, holidays, time zones or legal conventions for when a month ends. A real recurrence may specify the last day of each month, the nearest weekday or a fixed day with rollover, and each gives different dates. Use the governing rule for the schedule, then use the tool to check the arithmetic against it. The four dates used on this page, 2024-01-31, 2024-02-29, 2024-03-29 and 2024-03-31, make a compact test set that you can run through any other tool to see which of the two paths it follows.
Reproduce the checks
First one-month shift
Open the Add Months Calculator and enter:
- Calendar date
2024-01-31- Months
1
Expected output:
Date
2024-02-29February has no thirty-first day.
Second sequential shift
Open the Add Months Calculator and enter:
- Calendar date
2024-02-29- Months
1
Expected output:
Date
2024-03-29The intermediate day is now the twenty-ninth.
Direct two-month shift
Open the Add Months Calculator and enter:
- Calendar date
2024-01-31- Months
2
Expected output:
Date
2024-03-31The original thirty-first remains available in March.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- Primary definition and convention reference ↗ · 2026-10-08