Guides

How Does the Number of Days Calculator Count Working Days?

Learn how the number of days calculator counts working days: the five-per-week formula, weekend exclusion, a 261-day average year, and the end-date option.

Miryori Editorial Team2 min read
Try the Number of Days Calculator

A plain day count includes weekends, but payroll, deadlines and project plans usually care only about Monday to Friday. The number of days calculator has a Working time output for exactly that, alongside its ordinary Time between result.

The number of days calculator's Working time output counts only business days, Monday through Friday, and skips Saturdays and Sundays. It divides the span into whole weeks, counts five working days per week, then checks the leftover days individually. Ticking Include end date adds the end date when it is a weekday. Across a year, this averages 261 working days.

How does the working-time formula work?

The calculation separates the clean, repeating part of the span from the uneven remainder:

working time=⌊date2−date17⌋×5+remaining weekdays+include end date\text{working time} = \left\lfloor \frac{\text{date}_2 - \text{date}_1}{7} \right\rfloor \times 5 + \text{remaining weekdays} + \text{include end date}

The floor term counts complete seven-day weeks, each contributing five business days. The remaining-weekdays term walks the leftover days one by one and counts only those that are neither Saturday nor Sunday, which is how the calculator's underlying routine treats the weekend.

How many working days are in a year?

The number of business days in a year varies with the calendar and with leap years:

Year Working days
2021 261
2022 260
2023 260
2024 (leap year) 262
Long-run average 261

These totals count Monday to Friday only. They do not subtract public holidays, because those differ from country to country.

Worked example: counting the working days in April 2022

Take the April 4 to April 17, 2022 span used elsewhere in the calculator's examples, with the end date excluded. The gap is 13 days, so the formula gives one complete week: ⌊13/7⌋×5=5\lfloor 13 / 7 \rfloor \times 5 = 5 working days. The leftover run starts at April 11 and runs to April 17; of those days, April 11 to April 15 are Monday to Friday (5 days) while April 16 and 17 fall on the weekend and are skipped. The end date, April 17, is a Sunday, so the include-end-date term adds nothing even if the switch is on. That gives 5+5=105 + 5 = 10 working days out of 13 calendar days.

FAQ

How many workdays are in a year?

On average there are 261 working days per year. The count varies: 2021 had 261 business days, 2022 and 2023 each had 260, and the leap year 2024 had 262.

Are public holidays included in the count?

No. The yearly figures above do not account for public holidays, since holiday schedules vary by country. A local holiday calendar must be applied on top of the business-day count.

Does the count skip weekends automatically?

Yes. The working-day routine counts days that are not Saturday and not Sunday, which is why it reports Monday to Friday only.

References

  • Omni Calculator, "Number of Days Calculator": working-time formula and business-day guidance.
  • Standard Monday-to-Friday business-day conventions.
Calculator

Number of Days Calculator

Calculate Number of Days with practical everyday formulas, interactive references and step-by-step results. Free, fast and private.

Try the Number of Days Calculator