Last verified · v1.0
Calculator · business
Business Days Calculator
Count exact working days between two dates, excluding weekends and public holidays, using a precise formula trusted by HR, payroll, and legal professionals.
Inputs
Business Days
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Is a Business Days Calculator?
A business days calculator counts the number of working days — weekdays excluding public holidays — between two calendar dates. Project managers, HR professionals, payroll departments, and legal teams rely on accurate workday counts to set deadlines, calculate pay periods, and determine leave entitlements under statutes like the Family and Medical Leave Act.
The Business Days Formula
The calculation follows a precise three-part mathematical formula:
B = 5 · ⌊D/7⌋ + Σ 𝟙[(s+i) mod 7 ∉ {0,6}] − H
Variable Definitions
- B — The resulting count of business days
- D — Total calendar days in the date range (inclusive)
- s — Start day of the week (0 = Sunday, 1 = Monday, … 6 = Saturday)
- H — Number of weekday public holidays falling within the range
How the Formula Derives the Answer
The formula operates in three stages. First, dividing total calendar days D by 7 and applying the floor function (⌊D/7⌋) yields the number of complete weeks; each complete week contributes exactly 5 business days, producing 5 · ⌊D/7⌋. Second, the remainder D mod 7 represents a partial week. A summation iterates over each remaining day, checking whether the day of the week — computed by adding the day index i to the start day s modulo 7 — falls outside the weekend set {0, 6} (Sunday and Saturday). Every qualifying day increments the count by one. Third, subtracting the integer H removes any federal or regional public holidays that fall on a weekday within the date range.
Step-by-Step Worked Example
Count business days from Monday, January 6, 2025 to Friday, January 24, 2025: 19 total calendar days, start day = Monday (s = 1), and one U.S. federal holiday — Martin Luther King Jr. Day on January 20, 2025.
- Complete weeks: ⌊19/7⌋ = 2 → 2 × 5 = 10 business days
- Remaining days: 19 mod 7 = 5 (Mon, Tue, Wed, Thu, Fri — all weekdays) → 5 additional days
- Holidays: MLK Day falls on Monday Jan 20 (a weekday) → H = 1
- Result: B = 10 + 5 − 1 = 14 business days
Holiday Adjustments
The U.S. federal government recognizes 11 permanent public holidays per calendar year as catalogued by the U.S. Office of Personnel Management (OPM). When any holiday falls on a Saturday, the preceding Friday is the observed date; when a holiday falls on a Sunday, the following Monday is observed. Only the observed date is subtracted from the business day count. The U.S. Department of Labor's FMLA Fact Sheet #28I applies the same weekday-minus-holiday framework when calculating 12-week employee leave entitlements, confirming the real-world applicability of this approach.
Common Use Cases
- Contract and legal deadlines: Court filings, regulatory notices, and contract terms expressed as '30 business days' require a precise end date to avoid missed filings and financial penalties.
- Payroll processing: Biweekly payroll cycles typically contain 10 business days; holidays shift direct-deposit dates and must be identified well in advance.
- Project and sprint planning: Agile development teams set sprint lengths in business days to align velocity metrics with realistic developer availability.
- HR and leave management: FMLA entitlements, probation periods, and PTO accrual windows all depend on weekday-only counts rather than raw calendar days.
- Shipping and logistics: Freight carriers and e-commerce platforms publish transit windows in business days, making this calculation essential for accurate order-delivery estimates.
Why Accuracy Matters
Miscounting by even one day can trigger contractual penalties, void legal notices, or create compliance gaps. A 30-business-day SEC disclosure window starting on a Tuesday and spanning two federal holidays ends on a different calendar date than a naive 42-calendar-day estimate. The formula above provides a defensible, auditable count fully consistent with U.S. federal labor and government scheduling standards. Financial institutions, large corporations, and legal departments rely on this precision daily to meet regulatory requirements, manage project timelines, and safeguard compliance with labor laws. An error of even a single day can have significant financial and legal ramifications.
Reference