Business Days Between Dates Calculator
Calculate the number of business days between two dates.
Enter your values and click Calculate
Planning a project, calculating payroll periods, or estimating shipping and delivery timelines all require knowing the number of actual working days between two dates, not just calendar days. This calculator counts business days by excluding Saturdays and Sundays from the total, giving you the true number of weekdays in any date range. Project managers use it to set sprint deadlines and milestone dates. HR teams use it to calculate notice periods and payroll cycles. Logistics coordinators use it to estimate delivery windows based on carrier business-day commitments. Legal professionals use it to count response deadlines and filing periods that specify 'business days.' The calculator offers two useful options: toggle the end date in or out of the count (important for inclusive versus exclusive deadline conventions used in contracts), and optionally count weekends as business days for industries like retail, hospitality, or emergency services that operate seven days a week. The total calendar days and weekend days encountered are also shown so you can verify the result.
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.