Day Counter
Count total, business and weekend days between two dates, excluding holidays.
Inputs
ON: counts the end day itself (inclusive range). OFF: counts up to but not including it.
Enter how many public holidays fall on weekdays in this range. They will be deducted from the business-day count.
Total Calendar Days
365
Business Days (Mon–Fri)
261
Weekend Days
104
Working Days (after holidays)
261
Business days minus the entered holiday count.
Total Weeks
52.1429
Holidays Deducted
0
Step by step
Date range
= 2025-01-01 → 2025-12-31 (inclusive)
Total calendar days
365 days
= 365
Business days (Mon–Fri)
365 total − 104 weekend days
= 261
Deduct public holidays
261 − 0 holidays
= 261 working days
How it works
The calculator counts calendar days as the simple difference between the two dates (optionally inclusive of the end date). Business days are counted by iterating through each day in the range and excluding Saturdays and Sundays. Any public holidays that fall on weekdays are then deducted from the business-day count to give 'working days'. Because public holidays vary by country and employer, the user must supply the count.
Formulas
Total days (inclusive)
Total days = (end timestamp − start timestamp) ÷ ms-per-day + 1
Working days
Working days = Business days − Holiday count
- B
- Business days (Mon–Fri)
- H
- Public holidays on weekdays
Frequently Asked Questions
What does 'Include End Date' do?
With it ON, both the start and end dates are counted. For example, Jan 1 to Jan 3 inclusive = 3 days. With it OFF, the end date is not counted: Jan 1 to Jan 3 = 2 days. Use OFF when you need the 'gap' between dates (e.g. days remaining until a deadline).
How do I account for public holidays?
Enter the number of public holidays that fall on weekdays within your date range. The calculator deducts them from the business-day count to give the 'Working Days' figure.
Does it handle leap years?
Yes. The calculator works at the millisecond level and lets JavaScript's Date object handle calendar irregularities including leap years.
How long does counting take for a very large range?
The business-day count iterates day by day. A 10-year range is ~3650 iterations — effectively instant.