Work Days

The work days filter allows us to convert a duration in hours to work days.

The formula is:

\[days = \lceil duration \div hoursPerDay \rceil\]

Where:

  • duration is the number of hours

  • hoursPerDay is the number of working hours per day

Arguments

The filter has one argument hoursPerDay.

This value controls how many working hours there are in a day.

If a value is not specified, 5 hours will be used as the default.

Example Usage

Using the default:

{ repairDuration | workDays }

Specifying the number of work hours per day:

{ repairDuration | workDays:"8" }