Has Insufficient Rest Condition

com.workbrain.app.ta.conditions.HasInsufficientRestCondition

The Has Insufficient Rest Condition checks whether an employee lacks sufficient rest between their last work segment on the previous work summary day and their first work segment on the current work summary day being calculated.

Note: To check whether a certain amount of time has passed between two work segments on the same day, use the Worked N Minutes Condition (for example, check for 480 minutes of GAP).

For example, the collective bargaining agreement for a union states that an employee is due a premium of $25 when they are called back into work less than 8 hours after they have concluded their previous shift. Under this agreement, an employee who works from 15:00 to 23:00 on Friday and comes back into work at 6:00 on Saturday morning should receive the premium. An employee who comes back into work at 7:00 on Saturday should not receive the premium.

Parameters In

Name Type Description Example
Rest Minutes String (numeric) The number of minutes to compare against the end of the employee's last work segment on the previous calculation date and the start of their work segment on the calculation date. 480
Yesterday Must Worked Minutes Integer Optional value that indicates the minimum number of minutes the employee must have recorded on the previous calculation date for the condition to return a true result. If defined, and the employee has not worked enough minutes yesterday, the condition will return false regardless of how much rest the employee has had.

This includes time recorded against all work details as specified in the Time Codes and Hour Types parameters.

1
Min Consecutive Worked Minutes Integer Optional. Used in conjunction with the Yesterday Must Worked Minutes parameter to indicate the minimum number of consecutive minutes the employee must have recorded on the previous calculation date for the condition to return a true result.
Note: Only the consecutive minutes of the last eligible work detail on the previous calculation date are considered.
1
Time Codes DBlookup List of time codes that mark work details as eligible for consideration (if the Time Codes Inclusive? parameter is selected) or ineligible (if the Time Codes Inclusive? parameter is not selected). If this parameter is left blank, all time codes are eligible. WRK
Time Codes Inclusive? Checkbox Indicates whether the list of time codes specified in the Time Codes parameter identifies which time codes to consider (when selected) or which time codes to exclude from consideration (when cleared). Selected
Hour Types DBLookup List of hour types that mark work details as eligible for consideration (if the Hour Types Inclusive? parameter is selected) or ineligible (if the Hour Types Inclusive? parameter is not selected). If this parameter is left blank, all hour types are eligible. REG,OT1
Hour Types Inclusive? Checkbox Indicates whether the list of hour types specified in the Hour Types parameter identifies which hour types to consider (when selected) or which hour types to exclude from consideration (when cleared). Selected

Example: Check for minimum work minutes

In this example, an employee that has less than 8 hours of rest between shifts on consecutive days does not meet the company's defined rest period. To qualify for the minimum rest period, the employee must have worked at least 240 minutes (4 hours) on the previous day. Only the WRK time code is eligible for consideration.

Name Value
Rest Minutes 480
Yesterday Must Worked Minutes 240
Min Consecutive Worked Minutes 1
Time Codes WRK
Time Codes Inclusive? Selected
Hour Types REG,OT1
Hour Types Inclusive? Selected

For example, an employee has these worked records (prior to any rules applied):

Work Date Start Time End Time Time Code Hour Type
February 8, 2018 19:00 23:00 WRK REG
February 9, 2018 6:00 12:00 WRK REG

On February 8, the employee worked a half shift. Because the employee worked the minimum number of work time (240 minutes), they qualify for the minimum rest period.

As the employee received only 7 hours of rest between the end of the last segment of time on February 8 and the start of the first segment on February 9, the condition returns true.

Example: Check for minimum and consecutive work minutes

In this example, an employee that has less than 8 hours of rest between shifts on consecutive days does not meet the company's defined rest period. To qualify for the minimum rest period, the employee must have worked at least 480 minutes (8 hours) on the previous day and worked at least 300 consecutive minutes (5 hours). Only the WRK time code is eligible for consideration.

Name Value
Rest Minutes 480
Yesterday Must Worked Minutes 480
Min Consecutive Worked Minutes 300
Time Codes WRK
Time Codes Inclusive? Selected
Hour Types REG,OT1
Hour Types Inclusive? Selected

For example, an employee has these worked records (prior to any rules applied):

Work Date Start Time End Time Time Code Hour Type
February 8, 2018 11:00 15:00 WRK REG
15:00 19:00 GAP UNPAID
19:00 23:00 WRK REG
February 9, 2018 6:00 12:00 WRK REG

On February 8, the employee worked two separate 4-hour work segments as part of a split shift. Although the employee worked the minimum number of work time (480 minutes) on February 8, they did not work the defined minimum consecutive time (300 minutes). Therefore, the employee does not qualify for the minimum rest period and is considered to have automatically achieved sufficient rest.

As the employee does not qualify for the minimum rest period, the condition returns false.

Example: Check for multiple qualifying time codes

In this example, an employee that has less than 8 hours of rest between shifts on consecutive days does not meet the company's defined rest period. To qualify for the minimum rest period, the employee must have worked at least 480 minutes (8 hours) on the previous day. Only the WRK and TRN time codes are eligible for consideration.

Name Value
Rest Minutes 480
Yesterday Must Worked Minutes 480
Min Consecutive Worked Minutes 1
Time Codes WRK,TRN
Time Codes Inclusive? Selected
Hour Types REG,OT1
Hour Types Inclusive? Selected

For example, an employee has these worked records (prior to any rules applied):

Work Date Start Time End Time Time Code Hour Type
February 8, 2018 15:00 19:00 TRN REG
19:00 23:00 WRK REG
February 9, 2018 6:00 12:00 WRK REG

On February 8, the employee took training for half a day, and then worked as usual for the rest of their shift. Because the time charged against all qualifying time codes meets the defined minimum time worked (480 minutes), the employee qualifies for the minimum rest period.

As the employee received only 7 hours of rest between shifts on consecutive days, the condition returns true.