Examples

This section includes examples of shifts that violate or pass this schedule compliance rule.

Example 1 - Violation (extra day)

If Employee A is scheduled to work:

  • Monday 10:00 AM to 6:00 PM
  • Tuesday 10:00 AM to 6:00 PM
  • Wednesday 10:00 AM to 6:00 PM
  • Thursday 10:00 AM to 6:00 PM

Schedule compliance returns a violation because the employee is scheduled to work 4 consecutive days, which exceeds the maximum consecutive days specified by the rule (3).

Example 2 - Pass

Employee B is scheduled to work:

  • Monday 8:00 PM to 2:00 AM
  • Wednesday 8:00 AM to 2:00 PM
  • Thursday 8:00 AM to 2:00 PM
  • Friday 8:00 AM to 2:00 PM

Schedule compliance does not return a violation because this rule only applies to consecutive days and, although Monday's shift crosses into Tuesday, that shift is only counted against the day the shift begins (Monday). Since Wednesday through Friday is only 3 consecutive days, the rule is not violated.

Example 3 - Violation (DAY_WEEK_STARTS)

Employee C is scheduled to work:

  • Wednesday 10:00 AM to 2:00 PM
  • Thursday 10:00 AM to 2:00 PM
  • Friday 8:00 PM to 2:00 AM
  • Saturday 12:00 PM to 6:00 PM

Schedule compliance returns a violation because the employee is scheduled for 4 consecutive days, which exceeds the defined limit of 3. Although Friday's shift crosses into Saturday, that shift counts against the day in which the shift begins (Friday).

Example 4 - Violation (DAY_WEEK_STARTS)

Employee D is scheduled to work:

  • Saturday 12:00 PM to 8:00 PM
  • Sunday 8:00 AM to 4:00 PM
  • Monday 8:00 AM to 4:00 PM
  • Tuesday 8:00 AM to 4:00 PM

Schedule compliance returns a violation because the rule counts days from the preceding and following week as necessary to ensure the consecutive days maximum is not exceeded.