How Business Working Days are Calculated (Calculation Method)
The business days algorithm evaluates every calendar day in a range against weekend and holiday rules.
Business Days = Total Calendar Days - Weekend Days (Sat/Sun) - Excluded Weekday Holidays
Date Range Initialization
Set Start Date and End Date boundaries in UTC to establish total calendar span.
Weekend Filtering Loop
Iterate through each day. If day of week is Saturday (6) or Sunday (0), increment weekend count and skip.
Holiday Deduction
Check weekday dates against federal/bank holiday lists or custom excluded holiday count.
Net Workday Output
Return total net business days, total weekend days skipped, and equivalent working weeks.