!!!WK START OFF DAY
!!Time Rule Overview
This is a helper time rule to determine the beginning of the work week, depending on the minimum number of days off before the first day of work.

This time rule should be used in conjunction with the following time rules:
*[OT NTH WRK DAY  | TR_OT_NTH_WRK_DAY]
*[OT NTH CNS DAY| TR_OT_NTH_CNS_DAY]
*[OT WORKWEEK | TR_OT_WORKWEEK]

!!Additional Info
* [Band |QUALIFYING_BAND]: only one band is supported 

* Frequency predefined as Never

[Targeted Time Code Set|DTCS_ID_TARGET]
* This is a collection of time codes that help identify the work week. Any time considered "Work Time" should be included in the Target Time Code Set. If a time code is entered that is not found in this time code set, the system will treat the time code as a "Day Off". 

*Leave time codes can be included in the Target Time Code Set field. This will prevent unscheduled days off, such as Vacation or Sick time, from recalculating the start of the work week.  Example:  If the time rule Value is defined as '3' but the "Sick" time code was not included in the Target Time Code Set field, if an employee was sick for 3 days mid period, the time rule will recalculate the beginning of the work week to the incorrect day.

* The work week starts on the first day of work following the number of absence days defined in the Band, or 7 days after the start of the previous work week.

* The system will look back up to 30 days until it finds the minimum number of days off, defined in the Band.

* When the minimum number of days off are found, the work week's first day is the first work day. When the Value is defined, the work week will begin on the day off.

* If the process date is not within this week, the system will add 7 days until the process date belongs to the calculated week.

* If the system cannot find the minimum number of days off, defined in the Band, the start of the week will be Sunday.

!!Implementation
The time rule should be set up in [IDWR] as shown below. 


||[Cycle|CYCLE_NUMBER]||[Frequency|FREQUENCY]||[Seq|SEQUENCE]||[Time Rule Type|TIME_RULE_TYPE_TEXT]||[Band|QUALIFYING_BAND]||[From|FROM_CLOCK_TIME]||[To|TO_CLOCK_TIME]||[Value|VALUE]||[Day|DAY_OF_WEEK]||[Time Code|TIME_CODE_VALUE]||[Premium|PREMIUM_CODE]||[Target Time Code Set|TARGET_TIME_CODE_SET]|| [Apply Time Code Set|APPLY_TIME_CODE_SET]||[Action|TIME_RULE_ACTION]
| |Never| | |Minimum # of days off before week start|No|No|Include off days [1]|No|No|No|Required [2]|No|Replace

[1] If the Value field is blank, the week will start on the first work day, otherwise the week will start on the first day off.

[2] Collection of time codes that help to identify the work week. Leave time codes can also be defined in the Target Time Code Set but the set up depends on your organization's definition of a work week and what is considered a day off.

Examples: Band = 2

1. When the Value is not defined, the week will start on the first work day, after the minimum days off is reached, or 7 days after the previous work week.                
|   |	   | 1|	2|	3|	4|	5|	6|	7|	1
|Off|  	Off|__WRK__|WRK|WRK|WRK|WRK|WRK|WRK|__WRK__

2. When the Value is greater than 0, the week will start on the first off day, after the minimum number of days off is reached, or 7 days after previous work week.  
|1|2|3|4|5|6|7|1|2|3
|__Off__|Off|WRK|WRK|WRK|WRK|WRK|__WRK__|WRK|WRK

----
![Notes|Edit:Internal.TR_WK_START_OFF_DAY] 	
[{InsertPage page='Internal.TR_WK_START_OFF_DAY' default='Click to create a new notes page'}]