How to Calculate Working Business Days
In project management, shipping logistics, and corporate SLAs, timelines are almost always measured in 'Business Days' rather than calendar days.
What is a Business Day?
A standard business day is defined as Monday through Friday. Saturdays and Sundays are excluded from the total count.
Working Days Algorithm
$$\text{Total} = \sum_{d=start}^{end} \begin{cases} 1 & \text{if } d \notin \{Sat, Sun\} \\ 0 & \text{otherwise} \end{cases}$$
Iterates through each day and only increments the counter if the day is not Saturday (6) or Sunday (0).
Numerical Example Calculation
A 14-calendar-day sprint starting on Monday contains exactly 10 business days.