Examples
This section includes examples of shifts that violate or pass this schedule compliance rule.
Example Configuration
The following examples use these configuration settings:
Max Hours Allowed: 12
Length of Window: 24
Example 1 - Pass
Employee A is scheduled to work:
- Monday 8:00 PM to 8:00 AM
- Tuesday 8:00 PM to 8:00 AM
Schedule compliance does not return a violation because the employee is scheduled 12 hours during the two 24 hour windows.
Example 2 - Violation
Employee B is scheduled to work:
- Monday 8:00 PM to 8:00 AM
- Tuesday 6:00 PM to 8:00 AM
Schedule compliance returns two violations, one violation for each window. Window 1 violates because 14 hours (Monday 8:00 PM to Tuesday 8:00 AM, plus Tuesday 6:00 PM to 8:00 PM), are worked in the first 24 hour window. Window 2 violates because 14 hours (Tuesday 6:00 PM to Wednesday 8:00 AM) are worked in the second 24 hour window.
Example 3 - Violation
Employee C is scheduled to work:
- Monday 8:00 PM to 10:00 AM
- Tuesday 8:00 PM to 8:00 AM
Schedule compliance returns a violation because Window 1 (Monday 8:00 PM to Tuesday 10:00 AM), Employee C works 14 hours, which exceeds the Max Hours value (12). Window 2 (Tuesday 8:00 PM to Wednesday 8:00 AM) does not violate the rule.
Example 4 - Violation/Pass
Employee D is scheduled to work:
- Monday
- Shift 1- 6:00 AM to 2:00 PM
- Shift 2- 4:00 PM to 10:00 PM
- Tuesday
- Shift 1- 6:00 AM to 12:00 PM
- Shift 2- 4:00 PM to 10:00 PM.
Schedule compliance returns a violation for Window 1 because Employee D works 14 hours, which exceeds the maximum value (12). Window 2 passes because Employee D works 12 hours. Window 3 passes because Employee D works 12 hours. Window 4 passes because Employee D works 6 hours.
Example 5 - Pass (DAY_WEEK_STARTS)
Employee E is scheduled to work:
- Monday
- Shift 1- 6:00 AM to 2:00 PM
- Shift 2- 4:00 PM to 10:00 PM
- Tuesday
- Shift 1- 6:00 AM to 12:00 PM
- Shift 2- 4:00 PM to 10:00 PM
Schedule compliance does not return a violation for Window 1 even though Employee E works 14 hours, which exceeds the maximum value (12). However, this counts as a violation in the previous week.