terican

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.

FreeInstantNo signupOpen source

Inputs

Business Days

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Business Daysdays

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

Frequently asked questions

How many business days are in a typical year?
A standard calendar year contains approximately 260 to 262 business days. The exact count depends on how many weekend days the year has and how many of the 11 U.S. federal holidays recognized by the Office of Personnel Management (OPM) fall on weekdays rather than Saturday or Sunday. In 2025, for example, all 11 federal holidays fall on weekdays, yielding 261 business days total.
How do I manually calculate business days between two dates?
Divide the total calendar days by 7 to determine complete weeks, then multiply by 5. Next, count the remaining days (the modulo remainder) that fall on Monday through Friday based on the start day of the week. Finally, subtract any federal or regional holidays on weekdays within the range. For instance, 19 calendar days starting on Monday with one holiday yields 10 + 5 − 1 = 14 business days.
What is the difference between business days and working days?
Business days and working days are largely synonymous — both refer to weekdays (Monday through Friday) that are not public holidays. Some industries use the term 'working days' to reflect company-specific schedules that exclude additional days beyond standard federal holidays, such as regional observances or annual company shutdowns. For most legal, payroll, and HR calculations in the United States, the two terms are interchangeable.
Do weekends ever count as business days?
Weekends — Saturday and Sunday — do not count as business days under standard U.S. and international labor conventions. However, certain industries such as retail, logistics, healthcare, and emergency services may define their operational week differently. Unless a contract, statute, or employer policy explicitly states otherwise, Saturday and Sunday are excluded from every business days calculation performed by this calculator.
How many business days are in a month?
A typical month contains between 19 and 23 business days, depending on the total number of calendar days, how many fall on weekends, and how many federal holidays occur within it. February in a non-leap year averages about 20 business days, while months like July or November — each containing a major federal holiday — often total 21 or fewer. Use the calculator above to get a precise count for any specific month.
Does the Business Days Calculator account for federal holidays automatically?
Yes. The calculator applies the 11 U.S. federal holidays published annually by the Office of Personnel Management (OPM) and subtracts each holiday that falls on a weekday within the selected date range. The observed date is used when a holiday shifts to Friday or Monday. Users can also enter a custom holiday count to accommodate regional, state-level, or company-specific holidays not included in the standard federal schedule.