!!!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 field. If a time code is entered that is not found in this time code set, the system will treat that 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 like Vacation or Sick time from recalculating the start of the work week.  Example:  If the time rule had the Value 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 first day is the first work day. When the Value is defined, it indicates that the week should start with 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. 


||[Band|QUALIFYING_BAND]||[From|FROM_CLOCK_TIME]||[To|TO_CLOCK_TIME] ||[Value|TIME_RULE_VALUE]||[Day Of Week |DAY_OF_WEEK]||[Time Code|TIME_CODE]||[Premium |PREMIUM_CODE]||[Action|TIME_RULE_ACTION]||[Targeted Time Code Sets |DTCS_ID_TARGET]||[Apply Time Code Sets|DTCS_ID_APPLY]
|Minimum # of  days off before week start|No|No|Include off days (**)|No|No|No|Replace|Required (*)|No

(*) 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 the business needs of the organization and what they consider a work week and what is the real meaning of the day off.

(**) 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.	

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'}]