Utility ยท Oct 14, 2026 ยท 3 min read

How to Count Days Between Dates (and Why Answers Differ by One)

From Monday to Friday is 4 days or 5, depending on whether you count the end date; January 31 plus a month is February 29 in 2024; and a calculator that divides clock hours can lose a day at a daylight-saving change.

Counting Days: In or Out?

The most common date question has two right answers. From Monday to Friday is 4 days if you count the gaps between days (the usual way, and what subtracting dates gives you), but 5 days if you count every day you are there. Hotel nights and “days until” use the first; event days, rentals charged per day and “days of work” often use the second. Our Date Calculator counts the first way by default and has a checkbox to include the end date.

Months Are Not All the Same Length

Adding a month to January 31 has no perfect answer, because February has no 31st. The common rule, used by Python’s dateutil and most calendar software, moves the date to the last day of the shorter month: January 31, 2024 plus one month is February 29, 2024 (a leap year), and in 2023 it is February 28. The same rule means the time from January 31 to March 1 is “1 month and 1 day” even though it is only 30 days in 2024. When a deadline is written in months, check whether the contract or rule says how month ends are handled.

Why Some Calculators Are Off by a Day

A date calculator that subtracts clock times and divides by 24 hours can be wrong around daylight-saving changes, when a day is 23 or 25 hours long, and in time zones far from UTC. Counting whole calendar days avoids it: in our tests, with the browser set to New York time, March 10 to 11, 2024 (a 23-hour day) and November 3 to 4 (a 25-hour day) both counted as exactly one day.

Weekdays and Business Days

Counting weekdays (Monday to Friday) is a calendar question; counting business days also needs a list of holidays, which differs by country and employer. The date calculator gives the weekday count; for working days with public holidays removed, the Business Day Adder covers several countries’ holiday rules.

How We Checked

We compared the calculator with Python’s datetime, dateutil and NumPy on 5,000 random dates between 1900 and 2100: total days, years/months/days, weekdays, day names and additions all matched in every case, after fixing a bug the first run found in weekday counts before 1970.

Count days or find a date

Days between dates, weeks, months, weekdays; add or subtract days, weeks, months, years.

Open Date Calculator โ†’

Frequently Asked Questions

How many days are there between two dates?
Subtract the earlier date from the later one in whole days. From March 1 to March 31 is 30 days; if both the first and the last day count, it is 31.
Do you count the start date or the end date?
Normally the start is counted and the end is not, which is what subtracting dates gives. For event or rental days, count both by adding one.
What is one month after January 31?
The last day of February (the 28th, or the 29th in a leap year), by the common end-of-month rule.
Why is my date calculation off by one day?
Usually because of counting the end date or not, or because the calculator subtracts clock times and a daylight-saving day is 23 or 25 hours long. Counting whole calendar days avoids the second problem.

Published Oct 14, 2026 by Derek Giordano

๐Ÿ“š References & Further Reading
Browse all utility tools โ†’
โšกDate Calculatorโ†’โšกBusiness Day Adderโ†’
UtilityComplete Guide to Barcode Types & When to Use Eachโ†’UtilityHow to Design Professional Business Cards for Freeโ†’GuideHow Fancy Text Works (And When Not to Use It)โ†’DeveloperHow to Convert Between Binary, Octal, Decimal, and Hexโ†’DeveloperHow to Create a Markdown Table (Syntax & Generator)โ†’ColorHow to Generate a Color Palette from Scratchโ†’ColorHow to Generate Shades and Tints of Any Colorโ†’ImageHow to Generate a Favicon for Your Websiteโ†’