Guides

How Does the 90 Day Calculator Count Working Days?

See how the 90 day calculator counts working days: whole weeks of five, remaining weekdays, the weekend getDay codes, and the Include end date option.

Miryori Editorial Team3 min read
Try the 90 Day Calculator

Alongside its calendar-day result, the 90 day calculator reports a separate Working time figure. It is a computed, output-only field derived from the two dates you choose. Knowing how it is built matters whenever a 90-day deadline is expressed in working days rather than calendar days.

The Working time counts only weekdays between the From and To dates. The calculator takes every complete seven-day week as five working days, then counts the leftover weekdays individually, skipping Saturdays and Sundays. If you select the Include end date option, the final date is added when it is a weekday. The result is an output-only field you cannot type into by hand.

What formula does the calculator use for working days?

The working-time equation splits the span into whole weeks plus a remainder:

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

Dividing the gap between date2\text{date}_2 and date1\text{date}_1 by 7 gives the number of complete weeks, and each of those contributes exactly 5 working days. The remainder is handled by a counter that walks the leftover days and keeps only those that are not Saturday (getDay() value 6) or Sunday (getDay() value 0). The include-end-date flag is added at the end when the To date is a weekday.

Weekday getDay() value Counted in Working time?
Monday 1 Yes
Tuesday 2 Yes
Wednesday 3 Yes
Thursday 4 Yes
Friday 5 Yes
Saturday 6 No
Sunday 0 No

These are the weekday codes used by the remaining-day counter: only codes 1 through 5 are counted.

Why does the method count whole weeks separately?

A complete week always contains the same five weekdays, so the calculator handles the bulk of a long span with one multiplication and inspects only the short leftover period day by day. That keeps the count exact no matter which weekday the span happens to start on, instead of relying on an average.

Worked example: a 90-day span from March 1 to May 30

The source gives 1 March to 30 May as a 90-day span. Feeding that into the working-time equation: the gap is 90 days, and dividing by 7 gives 12 complete weeks, which contribute 12 × 5 = 60 working days. The calculator then walks the remaining days after those 12 weeks, counting each one whose getDay() value is neither 6 (Saturday) nor 0 (Sunday). If you enable Include end date and 30 May is a weekday, that final day is added as well.

Frequently Asked Questions

Does Working time include Saturdays and Sundays?

No. The remaining-day counter explicitly skips any day whose getDay() value is 6 (Saturday) or 0 (Sunday), so only Monday through Friday enter the Working time result.

Is Working time the same as Time between?

No. Time between is the plain calendar-day gap, which defaults to 90. Working time counts only the weekdays inside that same gap, so it is lower for any span that covers whole weeks.

Why can't I type a value into the Working time field?

Because the calculator marks it as an output-only field. It is computed from the From and To dates together with the include-end-date setting, so changing the dates is how you change the result.

What happens to Working time if I include the end date?

When the Include end date option is selected, the counter adds the To date to the total, provided that date is a weekday. If the To date falls on a Saturday or Sunday, nothing is added.

References

  • Omni 90 day calculator: the working-time equation, floor((date2 − date1)/7) × 5 plus remaining weekdays.
  • Omni 90 day calculator custom-day logic: getDay() codes 6 (Saturday) and 0 (Sunday) excluded from working days.
  • Omni 90 day calculator field definition: Working time is an output-only (forced) result.
Calculator

90 Day Calculator

Calculate 90 Day with practical everyday formulas, interactive references and step-by-step results. Free, fast and private.

Try the 90 Day Calculator