How it is worked out
months = month boundaries crossed, then the days left over
Why it is done this way
Months are the awkward calendar unit, because they are not all the same length. Counting them properly means stepping from the start date to the same day of each following month until you overshoot; the number of steps is the months and what remains is the days.
Step by step
- Step forward one month at a time from the start date
- Stop when the next step would pass the end date
- The number of steps is the whole months
- The days between there and the end date are the remainder
What is worth knowing
The step-by-step method is what makes 31 January plus one month land on 28 February rather than 3 March, which is the convention almost every legal and financial system uses. Dividing total days by 30.44 gives an approximate figure that is fine for a rough sense of scale and wrong for anything that turns on a date. The gap matters most over short periods: two dates 60 days apart can be one month and 29 days or two months exactly, depending entirely on which months they cross.
From one month to another, how many months
Counting the month boundaries crossed within the same year. If you need to include both end months, add one.
| From the month of… | To August | To December | To the same month next year |
|---|---|---|---|
| January | 7 months | 11 months | 12 months |
| February | 6 months | 10 months | 12 months |
| March | 5 months | 9 months | 12 months |
| April | 4 months | 8 months | 12 months |
| May | 3 months | 7 months | 12 months |
| June | 2 months | 6 months | 12 months |
| July | 1 month | 5 months | 12 months |
| August | — | 4 months | 12 months |
| September | 11 months | 3 months | 12 months |
| October | 10 months | 2 months | 12 months |
| November | 9 months | 1 month | 12 months |
| December | 8 months | — | 12 months |