Examples
This section includes examples of shifts that violate or pass this schedule compliance rule.
Example Configuration
The following examples use this configuration setting:
Max Shifts Allowed: 2
Example 1 - Violation
Employee A is scheduled to work:
- Monday
- Shift 1 12:00 PM - 4:00 PM
- Shift 2 8:00 PM - 12:00 AM
- Tuesday
- Shift 1 12:00 PM - 4:00 PM
- Shift 2 8:00 PM - 12:00 AM
- Wednesday
- Shift 1 8:00 AM - 12:00 PM
- Shift 2 2:00 PM - 6:00 PM
- Shift 3 10:00 PM - 2:00 AM
- Thursday
- Shift 1 12:00 PM - 4:00 PM
- Shift 2 8:00 PM - 12:00 AM
- Friday
- Shift 1 12:00 PM - 4:00 PM
- Shift 2 8:00 PM - 12:00 AM
Schedule compliance returns a violation because Employee A is scheduled to work 3 shifts on Wednesday.
Example 2 - Pass
Employee B is scheduled to work:
- Monday
- Shift 1 12:00 PM - 4:00 PM
- Shift 2 8:00 PM - 12:00 AM
- Tuesday
- Shift 1 12:00 PM - 4:00 PM
- Shift 2 8:00 PM - 12:00 AM
- Wednesday
- Shift 1 8:00 AM - 12:00 PM
- Shift 2 10:00 PM - 6:00 AM
- Thursday
- Shift 1 12:00 PM - 4:00 PM
- Shift 2 8:00 PM - 12:00 AM
- Friday
- Shift 1 12:00 PM - 4:00 PM
- Shift 2 8:00 PM - 12:00 AM
Schedule compliance does not return a violation because this rule applies to the number of shifts in a day, and although it appears that Thursday has three shifts, the earliest one belongs to Wednesday because it started on Wednesday.
Example 3 - Violate (too many shifts)
Employee C is scheduled to work:
- Saturday 8:00 PM - 8:00 AM
- Sunday 4:00 PM - 8:00 PM
- Tuesday 4:00 AM - 10:00 PM
- Wednesday
- Shift 1 4:00 AM - 6:00 AM
- Shift 2 8:00 AM - 10:00 AM
- Shift 3 2:00 PM - 6:00 PM
- Friday
- Shift 1 12:00 PM - 4:00 PM
- Shift 2 8:00 PM - 12:00 AM
Schedule compliance returns a violation because the employee is scheduled for 3 shifts on Wednesday. Although the employee works more hours on Tuesday than on Wednesday, the length of the shifts is not considered, so Tuesday passes this rule.