BCBetter Calculators

Business Days Between Dates Calculator

Calculate the number of business days between two dates.

🧮

Enter your values and click Calculate

How It Works

The calculator constructs JavaScript Date objects from the year, month, and day inputs and normalizes both to midnight (00:00:00) to eliminate any time-of-day ambiguity. It then checks that the end date is not earlier than the start date. The core algorithm iterates day-by-day from the start date to the end date using a while loop. On each iteration, it checks the day-of-week value (0 = Sunday, 6 = Saturday). Days with values 1–5 are always counted as business days. Days with values 0 or 6 increment the weekend counter and are added to the business day total only if the countWeekends toggle is enabled. The includeEndDate toggle controls whether the loop's boundary condition uses a strict less-than or a less-than-or-equal comparison, making it easy to switch between exclusive and inclusive counting conventions. Total calendar days and weekend days are tracked in parallel for transparency.

Examples

Standard Two-Week Sprint
Calculating a project sprint starting on Monday the 1st and ending on Friday the 12th, inclusive.
Result: Shows 10 business days and 2 weekend days out of 12 total calendar days.
Shipping Estimate
A 5-day shipping window not counting the day of shipment (exclusive) and skipping weekends.
Result: Calculates exactly 5 business days, bypassing any weekend overlap.
Retail 7-Day Operation
A business open every day calculating total operational days in a month.
Result: Returns 31 business days, treating weekends as standard working days.

Frequently Asked Questions

Does this calculator account for public holidays?
No, this calculator strictly excludes Saturdays and Sundays. Since holidays vary wildly by country, state, and company, you should manually subtract your specific observed holidays from the final business day count.
What does 'Include End Date' mean?
If you start on the 1st and end on the 2nd, excluding the end date counts as 1 day (just the 1st). Including the end date counts as 2 days (the 1st and the 2nd).
Why would I count weekends as business days?
Some industries, like hospitality, retail, and certain freelance contracts, operate on a 7-day schedule where every calendar day is considered a billable or operational business day.
Can I calculate backwards?
This specific calculator requires the start date to come before the end date to prevent negative output errors. If you need a past duration, simply swap your start and end dates.

Related Calculators