Example: Count Absence Occurrences in the Current Balance Period
This example illustrates how to create a calculation for a quantity-per-occurrence value on an absence table tier. The calculation counts the absence occurrences that fall within or span the balance period for the time off plan as of the occurrence start date. The calculation determines the quantity based on that number.
Global Modern Services applies different waiting periods to paid sick time off plans depending on the country. Their
Ireland Sick Time Off
absence table configuration includes a waiting period tier called Waiting Period Plan 7
. Workday uses the Quantity per Occurrence
value to allocate time off units to the waiting period tier for each request. The quantity depends on the number of absence occurrences in the current balance period. Each tier in the absence table includes an hours-based plan. You create the time offs, time off plans, and Ireland Sick Time Off
absence table:
Priority | Absence Tier Plan | Time Off Plan Balance | Time Off Plan Balance Lower Limit | Time Off Name | Maximum Unpaid Time Off Units Allowed | Days to Include | Accrual per Period |
|---|---|---|---|---|---|---|---|
1
| Waiting Period Plan 7
| 0
| 0
| Time Off G
| None
| Workdays (Non-Holiday)
| 0
|
2
| Time Off Plan 8
| 4
| 0
| Time Off H
| 0
| Workdays (Non-Holiday)
| 4
|
3
| Time Off Plan 9
| 4
| 0
| Time Off I
| None
| Workdays (Non-Holiday)
| 0
|
You're preparing to configure the
Quantity per Occurrence
value. You want to create a conditional calculation that allocates time off units based on the results of value comparison calculations. If the count is:
- 1, the quantity is0.
- 2, the quantity is2.
- Greater than or equal to3, the quantity is3.
Count of Absence Occurrences in Current Balance Period
instance value calculation (IVC).Create the absence table, leaving the
Quantity per Occurrence
fields empty.Create and assign calendars.
Set up absence occurrences.
Security:
- Set Up: Payroll (Calculations - Generic)domain in the Core Payroll functional area.
- These domains in the Time Off and Leave functional area:
- Set Up: Time Off (Calculations - Absence Specific)
- Set Up: Time Off (Calculations - Generic)
- Worker Data: Time Off (Time Off)
- Worker Data: Time Off (Time Off Manager View)
- Create the value comparison calculations.
- Access theCreate Value Comparison Calculationtask and enter:FieldValueNameIf count = 1 in current balance periodCategoryAbsenceCommentTrue if the count of absence occurrences for the time off type in the current balance period is equal to 1.1st OperandCount of Absence Occurrences in Current Balance PeriodOperatorequal to2nd Operand1
- ClickOKandDone.
- Access theCreate Value Comparison Calculationtask and enter:FieldValueNameIf count = 2 in current balance periodCategoryAbsenceCommentTrue if the count of absence occurrences for the time off type in the current balance period is equal to 2.1st OperandCount of Absence Occurrences in Current Balance PeriodOperatorequal to2nd Operand2
- ClickOKandDone.
- Access theCreate Value Comparison Calculationtask and enter:FieldValueNameIf count >= 3 in current balance periodCategoryAbsenceCommentTrue if the count of absence occurrences for the time off type in the current balance period is greater than or equal to 3.1st OperandCount of Absence Occurrences in Current Balance PeriodOperatorgreater than or equal to2nd Operand3
- ClickOKandDone.
- Create a conditional calculation for theQuantity per Occurrencevalue for a time off type in the current balance period.
- Access theCreate Conditional Calculationtask and enter:FieldValueNameQuantity Based on Count in Current Balance PeriodCategoryAbsenceCommentIf count = 1 then 0If count = 2 then 2If count >= 3 then 3Else 0Default Response0
- Add these rows to theCalculation:OrderConditionResultaIf count = 1 in current balance period0bIf count = 2 in current balance period2cIf count >= 3 in current balance period3
- ClickOKandDone.
- Add the calculation to the absence table tier.
- Access theEdit Absence Tabletask and select theIreland Sick Time Offabsence table.
- In theQuantity per Occurrencecolumn for theWaiting Period Plan 7absence tier plan, selectQuantity Based on Count in Current Balance Period.
- ClickOKandDone.
You can access the:
- View Absence Occurrences Summaryreport to find out how many occurrences workers have that start or end within the period, span the period, or start and end within the period.
- Absence Tier Time Off Entry Detailsreport to review how Workday splits units by absence table tier when workers request time off.
Tier Allocation
Jamie requests 5 hours time off on Tuesday (2021-02-11) using the
Ireland Sick Time Off
absence table. Alex, Jamie's manager, accesses the:
- View Absence Occurrences Summaryreport. Alex can see that Jamie has 1 absence occurrence for Wednesday (2021-01-13), starting in the current balance period. Jamie has another 3-day occurrence from Wednesday (2020-12-30) to Monday (2021-01-04), starting before and continuing into the period. Because the time off occurs at either side of a weekend and bank holiday, Workday joins the days into a single occurrence.
- Absence Tier Time Off Entry Detailsreport. Because theCount of Absence Occurrences in Current Balancereturns3, Alex can see that for Jamie's time off request on 2021-02-11, a waiting period applies.
Workday allocates:
- 3 hours to the first tier (Time Off G).
- 2 hours to the second tier (Time Off H).