How to Calculate How Many Days Until (or Since) a Date
"How many days until Christmas?" "How many days since we started this project?" These sound like the easiest questions in the world. Then two people count and get answers one day apart, and both are sure they're right.
They might both be right. Here's why, and how to count days without getting tripped up.
The off-by-one problem
Take Monday to Friday of the same week. How many days is that?
If you're asking how much time passes, the answer is 4. Monday to Tuesday is one day, Tuesday to Wednesday is two, and so on until Friday. If you're asking how many days an event covers, counting Monday and Friday themselves, the answer is 5.
Neither one is wrong. They answer different questions. A hotel stay from Monday to Friday is 4 nights. A conference from Monday through Friday is 5 days. Before you count, decide whether the end date should count too.
How to count days by hand
For dates in the same month, just subtract: from the 3rd to the 20th is 17 days. Across months, break it into pieces. Here's November 26 to December 25:
- Days left in November after the 26th: November has 30 days, so 30 minus 26 is 4.
- Days into December: 25.
- Total: 4 plus 25 is 29 days.
Month lengths and the knuckle trick
The by-hand method only works if you know how long each month is. Seven months have 31 days, four have 30, and February has 28, or 29 in a leap year. If you can't remember which is which, make a fist. Count the months across your knuckles and the dips between them. January lands on a knuckle, February in a dip, March on a knuckle, and so on. Knuckles are 31 days, dips are 30, except February. When you run out of knuckles after July, start again on the first knuckle for August.
For longer spans, add up the months in the middle. That's where mistakes creep in, and where a calculator earns its keep.
Leap years change the answer
A year usually has 365 days, but a leap year has 366. The Gregorian calendar we use today has a simple rule: a year divisible by 4 is a leap year, except years divisible by 100, which are not, unless they're also divisible by 400. So 2000 was a leap year, 2100 won't be, and 2028 will be.
That's why March 1, 2026 to March 1, 2027 is 365 days, but March 1, 2027 to March 1, 2028 is 366. The extra February 29 sits in between. If you were born on that day, here's how leap day birthdays work.
The calendar itself has also been edited before. In 1582, ten days were cut from it, which is why October 5 to 14, 1582 never happened in much of Europe. Be careful with any date math that far back.
Business days are a different question
"Ten business days" isn't the same as ten days. Business days usually mean Monday to Friday, so weekends drop out. Holidays usually drop out too, but which holidays depends on your country, your state and your employer. Our calculator skips Saturdays and Sundays only, so take out any holidays yourself.
My take: always say "including" or "not including"
This is opinion, but I'd bet it would save a lot of arguments. Whenever a number of days matters, like a deadline, a return window or a notice period, write it so the end date can't be misread. "Returns accepted for 30 days after delivery" is vague. "Returns accepted through June 30" isn't. If someone gives you a number of days, ask whether day one counts.
For anything official, like a legal deadline or a contract, the rules in that document decide how days are counted, not a calculator. Use the calculator to check your math, then check the rules.
Try it yourself
Open the date calculator and choose Between two dates. You get the total days, plus weeks, months and business days. The end date isn't counted by default; check "Include end date" when it should be. The Age tab shows days lived since a birth date. To watch a future date tick down, make a countdown, like this one to Christmas 2027.
Sources
- Claus Tøndering, Calendar FAQ: The Gregorian calendar
- Wikipedia: Leap year
- Wikipedia: Knuckle mnemonic