How many days between two dates? Counting mistakes in contracts, leave and subscriptions

Published · Common mistakes with worked examples

How many days are left on the contract? How many days of leave is it? When does the subscription end? These questions look simple, but counting by hand runs into the same mistakes again and again: counting the first day or not, months of different lengths, leap years, and mixing up the two calendars. In this article we explain each mistake with an example.

The difference between the dates, or the number of days inclusive?

This is the most common reason two people get different answers for the same period. Leave that starts on Sunday 4 October 2026 and ends on Thursday 8 October 2026:

The rule: if both the first and the last day count, add 1 to the difference. In contracts and subscriptions, read the wording carefully: "from 1 January to 31 December" means a full year, including both days.

Months aren't 30 days

From 1 January 2026 to 1 October 2026 is 273 days, while counting it as 9 months × 30 gives 270. The difference comes from the months with 31 days, and from February, which has only 28.

So "a one-month subscription" can differ from "a 30-day subscription": the first ends on the same date of the next month, the second after exactly 30 days, however long the month is.

The end of the month: 31 January + one month = ?

If a monthly subscription starts on 31 January, there's no 31 February. Most systems move the date to the last day of the month, 28 February, or 29 in a leap year. Some move it to 1 March. If the date matters, check the provider's own terms.

Leap years

From 1 January 2027 to 1 January 2028 is 365 days, but from 1 January 2028 to 1 January 2029 is 366 days, because 2028 is a leap year with a 29 February. Any contract or period counted in days that runs through February in a leap year gains a day.

Hijri and Gregorian

A Hijri year is 354 or 355 days, and a Gregorian year is 365 or 366. So if a period is written as "one Hijri year" and you count it in Gregorian dates, you'll be out by about 11 days. Convert both dates to the same calendar first with the Hijri date converter, then work out the difference.

How to work it out quickly

The Hisba age calculator works out the time between any two dates, not just from a date of birth: put the start date in the "Date of birth" field and the end date in the second field, and you'll see the period in years, months and days, along with the total days between the two dates. Remember to add a day if you want to count both days.

Summary

SituationWatch out for
Leave or a hotel bookingDo the first and last day count?
Monthly subscription"A month" or "30 days"? And the end of the month
Annual contractLeap years, and the "from … to …" wording
A period written in HijriConvert to one calendar before counting

Related tools