The day counter does more than count calendar days: the same two dates also produce a Working time result that counts only the days you plan to work. That result follows a fixed weekly rule and a remainder that skips weekends, with switches for the end date and for individual weekdays.
The day counter computes working days as five days for every complete week in the span, plus a remainder that skips Saturdays and Sundays. Its formula floors the calendar-day difference divided by seven, multiplies by five, then adds the remaining weekdays up to the end date. You can include or exclude the end date and choose which weekdays count.
What is the working-days formula?
The tool defines its working-time output with one equation:
The floor term counts complete seven-day weeks between the two dates and multiplies them by the five working days in a week. getRemaining then walks the leftover days from the remainder start up to the end date and counts only those that are not weekend days, adding the end date itself when the include-end-date switch is on and the day is a working day.
Which days does the working-day count skip?
The remainder function steps through each leftover date and ignores days whose JavaScript UTC weekday is 6 (Saturday) or 0 (Sunday). Those two days are the weekend: Saturday is the Jewish Shabbat, or day of rest, which was taken as a holiday along with the Christian Sabbath to form the weekend. National public holidays and bank holidays are likewise not counted as working days, because no one is expected to work on them; a personal day off does count when the rest of the country is still working.
How do I choose which weekdays count?
Besides the standard five-day week, the calculator offers a custom count through the "Include / exclude some week days" control:
| Control | Options | Effect on the count |
|---|---|---|
| Include / exclude some week days | Include (1), Exclude (0) | Enables or disables the custom weekday selection |
| Mondays through Fridays | Selected (1) or not (0) | Counts or skips that weekday |
| Saturdays, Sundays | Selected (1) or not (0) | Counts or skips that weekend day |
| Include end date | Selected (1) or not (0) | Adds the end date when it qualifies |
When the custom option is active, the tool returns a Custom time value that counts only the selected weekdays, using the same include-end-date switch.
Worked example: a seven-day span
Take a span of exactly 7 calendar days. The floor term is , and working days. The remainder begins at the end date itself, so getRemaining walks no intermediate days and returns one extra day only when the end date is a weekday and the Include end date switch is on, giving 6. With the switch off, the result stays at 5.
FAQ
Does Saturday count as a business day?
No, Saturday does not usually count as a business day. It is the Jewish Shabbat, or day of rest, which was taken as a holiday along with the Christian Sabbath to form the weekend.
Do holidays count as business days?
No. National public holidays and bank holidays are not business days, as no one is supposed to work on them. If you take a personal holiday while the rest of your country is still at work, those days off do count as business days.
How do I count five working days?
Count forward five days, ignoring any weekends or public holidays that you land on. In the calculator, enter the start date and let the Working time field do the skipping for you.
References
- Omni's Day Counter FAQ: business-day status of Saturday, public holidays and the five-working-day counting rule.
- The day counter's Working time and Custom time field definitions and its working-time equation.
- The remainder function's weekend rule, which skips UTC weekdays 6 (Saturday) and 0 (Sunday).