Example: Calculate Location-Based Overtime
This example illustrates how to combine calculated fields and time calculations to support location-based overtime requirements.
Nonresidents working in XYZ State, USA are eligible for XYZ State double time. Workers in XYZ State are paid double time after 12 hours of work in a day, whether they're residents of the state or not.
Security:
- Custom Field Managementdomain in the System functional area.
- Set Up: Time Calculationsdomain in the Time Tracking Calculations functional area.
- Access theCreate Calculated Fieldtask to create calculated fields that build on each other. You'll use the final calculated field in this step in the time block conditional calculation.
- Create a calculated field that returns a worker's default state.FieldValueField NameWorker's Default State for a Time BlockBusiness ObjectTime BlockFunctionLookup Related Value
- ClickOK.
- In theCalculationtab, specify these values:FieldValueLookup FieldWorkerSelect theWorkeroption with the Time Block business object. View the related actions menu to verify the business object associated with a Worker option.Return ValuePrimary Address - State/Province
- ClickOK.
- ClickCreate Another Calculation.
- Create a calculated field that returns a worker's default state as of the time block date.FieldValueField NameWorker's Default State for a Time Block as of Time Block DateBusiness ObjectTime BlockFunctionLookup Value as of Date
- ClickOK.
- In theCalculationtab, specify these values:FieldValueSource FieldWorker's Default State for a Time BlockEffective DateCalculated Date
- ClickOK.
- ClickCreate Another Calculation.
- Create a calculated field that returns the state for the time block if a worker overrides the default state for the time block.FieldValueField NameOverride State for a Time BlockBusiness ObjectTime BlockFunctionLookup Related Value
- ClickOK.
- In theCalculationtab, specify these values:FieldValueLookup FieldLocationReturn ValuePrimary Address - State/Province
- ClickOK.
- ClickCreate Another Calculation.
- Create a calculated field that returns true if a worker's default location is in XYZ State or if a worker specifies the location for the time block as XYZ State.FieldValueField NameTime Block Worked in XYZ StateBusiness ObjectTime BlockFunctionTrue/False Condition
- ClickOK.
- In theCalculationtab, create the true/false condition. Add these rows to the grid:And/Or(FieldOperatorComparison TypeComparison Value)And(Override State for a Time Blockis blankAndWorker's Default State for a Time Block as of Time Block Dateequal toValue specified in this filterXYZ State)OrOverride State for a Time Blockequal toValue specified in this filterXYZ State
- ClickOKandDone.
- Create a time block conditional calculation using the calculated fieldTime Block Worked in XYZ Statethat you defined in the previous step. This calculation tags all time blocks worked in XYZ State with anXYZ Statecalculation tag.
- Access theCreate Time Calculationtask.
- In theNamefield, enterXYZ State Time.
- From theCalculation Typeprompt, selectTime Block Conditional Calculation.
- ClickOK.
- In theCriteriasection, from theTime Block Conditionsprompt, selectTime Block Worked in XYZ State.
- In theResultssection, from theAdd Tagsprompt, create anXYZ Statetime calculation tag.
- In theGroupstab, specify time calculation groups so that all workers are eligible for this calculation, not just XYZ State residents. Add a row to the grid with these values:FieldValueTime Calculation GroupUSA - Overtime CalculationsEffective DateCurrent Snapshot
- ClickOK.
- Access theMaintain Time Calculation Prioritiestask, and assign this calculation a priority of 080.
- ClickOKandDone.
- Create an overtime calculation that calculates double time if a worker works more than 12 hours in a day, for both XYZ State residents and nonresidents who worked in XYZ State.
- Access theCreate Time Calculationtask.
- In theNamefield, enterXYZ State Double Time.
- From theCalculation Typeprompt, selectStandard Overtime Calculation.
- ClickOK.
- In theGeneral Optionstab, specify theCriteria:FieldValuePeriodDailyReplace Hours Greater than (value)12Time Calculation TagsXYZ State
- Specify theResults:FieldValueAdd TagsDouble TimeRemove TagsRegularTime Day Based OnCalculated Date
- In theGroupstab, specify time calculation groups so that all workers are eligible for this calculation, not just XYZ State residents. Add a row to the grid with these values:FieldValueTime Calculation GroupUSA - Overtime CalculationsEffective DateCurrent Snapshot
- ClickOK.
- Access theMaintain Time Calculation Prioritiestask to assign this calculation priority 085 so that it executes after the time block conditional calculation.
- ClickOKandDone.
When nonresidents work in XYZ State, they must specify which time blocks they worked in XYZ State so that Workday includes the time blocks in the double time calculations.