Examples
This section includes examples of shifts that violate or pass this schedule compliance rule.
Example Configuration
These examples use these configuration settings, unless otherwise noted:
Max Hours Allowed: 40
DAY_WEEK_STARTS: Sunday
Example 1 - Pass
Employee A is scheduled to work:
- Monday 8:00 AM - 4:00 PM
- Tuesday 8:00 AM - 4:00 PM
- Wednesday 8:00 AM - 4:00 PM
- Thursday 8:00 AM - 4:00 PM
- Friday 8:00 AM - 4:00 PM
Schedule compliance does not return a violation because the total scheduled hours do not exceed the limit.
Example 2 - Violation (extra shift)
Employee B is scheduled to work:
- Sunday 8:00 AM - 2:00 PM
- Monday 8:00 AM - 6:00 PM
- Tuesday 8:00 AM - 4:00 PM
- Wednesday 8:00 AM - 4:00 PM
- Thursday 8:00 AM - 4:00 PM
- Friday 8:00 AM - 4:00 PM
Schedule compliance returns a violation because the scheduled hours total 46, which exceeds the limit of 40.
Example 3 - Pass (week start)
Employee C is scheduled to work:
- Saturday 6:00 AM to 12:00 PM
- Monday 8:00 AM - 6:00 PM
- Tuesday 8:00 AM - 4:00 PM
- Wednesday 8:00 AM - 4:00 PM
- Thursday 8:00 AM - 4:00 PM
- Friday 8:00 AM - 4:00 PM
Schedule compliance does not return a violation because Saturday’s scheduled hours count towards the previous week.
Example 4 - Pass (DAY_WEEK_STARTS)
Employee D is scheduled to work:
- Saturday 6:00 PM to 4:00 AM
- Sunday 6:00 PM to 4:00 AM
- Tuesday 6:00 PM to 4:00 AM
- Friday 4:00 PM to 4:00 AM
- Saturday 8:00 PM to 4:00 AM
Schedule compliance does not return a violation because the first Saturday’s shift from 6:00 PM to Sunday at 4:00 AM count towards Saturday, and therefore the previous week. However, the second Saturday shift 8:00 PM to 4:00 AM on Sunday (8 hours) count towards this week’s scheduled hours because all shift hours count towards the day on which the shift starts.
Example 5 - Violation (DAY_WEEK_STARTS)
Employee E is scheduled to work:
- Saturday 6:00 PM to 4:00 AM
- Sunday 6:00 PM to 4:00 AM
- Tuesday 6:00 PM to 4:00 AM
- Friday 4:00PM to 4:00 AM
- Saturday 8:00PM to 6:00 AM
Schedule compliance returns a violation because the second Saturday’s shift (8:00 PM to 6:00 AM on Sunday) counts towards this week’s scheduled hours because all shift hours count towards the day on which the shift starts (Saturday).