Skip to main content
Administrator Guide
Last Updated: 2026-03-13
Example: Calculate the Majority of a Shift

Example: Calculate the Majority of a Shift

This example illustrates how to configure Workday Time Tracking to create calculations to pay workers appropriately depending on when they work the majority of their shift.
At your company, the majority of a worker's worked hours in a shift falls between 6:00 PM and 6:00 AM. Workers are paid a premium rate for their entire shift (called
Shift 2
in this example).
  • Enable a time shift option on the time entry templates of the workers to whom you want these calculations to apply. See Set Up Time Shift Options.
  • Security:
    Set Up: Time Calculations
    domain in the Time Tracking Calculations functional area.
  1. Create a shift differential calculation to tag all hours worked between 6:00 PM and 6:00 AM as
    Shift 2
    .
    1. Access the
      Create Time Calculation
      task.
    2. In the
      Name
      field, enter
      Shift 2 Hours
      .
    3. From the
      Calculation Type
      prompt, select
      Shift Differential Calculation
      .
    4. Click
      OK
      .
    5. On the
      General Options
      tab, specify the
      Criteria
      :
      Field
      Value
      Start Time
      6:00 PM
      End Time
      6:00 AM
    6. In the
      Results
      section, from the
      Add Tags
      prompt, create a
      Shift 2
      time calculation tag.
    7. On the
      Groups
      tab, add a row to the grid with these values:
      Field
      Value
      Time Calculation Group
      Full-Time Hourly Worker
      Effective Date
      Current Snapshot
    8. Click
      OK
      .
  2. Access the
    Maintain Time Calculation Priorities
    task to assign the calculation priority 045.
  3. Click
    OK
    and
    Done
    .
  4. Access the
    Create Calculated Field
    task to create calculated fields that build on each other. You use the final calculated field created in this step in the time block conditional calculation.
    1. Create a calculated field that returns true if a time block is tagged as
      Shift 2
      .
      Field
      Value
      Field Name
      Time Block Has Shift 2 Calc Tag
      Business Object
      Time Block
      Function
      True/False Condition
    2. Click
      OK
      .
    3. On the
      Calculation
      tab, create the true/false condition. Add this row to the grid:
      And/Or
      (
      Field
      Operator
      Comparison Type
      Comparison Value
      )
      And
      Calculation Tags
      any in the selection list
      Value specified in this filter
      Shift 2
    4. Click
      OK
      .
    5. Click
      Create Another Calculation
      .
    6. Create a calculated field that sums all the time blocks in a shift tagged as
      Shift 2
      .
      Field
      Value
      Field Name
      Total Shift 2 Hours for a Shift
      Business Object
      Time Shift
      Function
      Sum Related Instances
    7. Click
      OK
      .
    8. On the
      Calculation
      tab, specify these values:
      Field
      Value
      Related Field
      Time Blocks for a Time Shift
      Instances where condition is true
      Time Block Has Shift 2 Calc Tag
      Field to Sum
      Calculated Quantity
    9. Click
      OK
      .
    10. Click
      Create Another Calculation
      .
    11. Create a calculated field that calculates the percent of time in a shift that is tagged as
      Shift 2
      .
      Field
      Value
      Field Name
      % of Shift in Shift 2
      Business Object
      Time Shift
      Function
      Arithmetic Calculation
    12. Click
      OK
      .
    13. On the
      Calculation
      tab, from the
      Field Type
      prompt, select
      Numeric
      .
    14. Add these rows to the grid:
      (
      Field
      )
      Operator
      Total Shift 2 Hours for a Shift
      / (Divide)
      Total Reported Hours for a Shift
    15. Click
      OK
      .
    16. Click
      Create Another Calculation
      .
    17. Create a calculated field that returns true if the majority of a shift was worked in
      Shift 2
      .
      Field
      Value
      Field Name
      Majority of Shift Worked in Shift 2
      Business Object
      Time Shift
      Function
      True/False Condition
    18. Click
      OK
      .
    19. On the
      Calculation
      tab, create the true/false condition. Add this row to the grid:
      And/Or
      (
      Field
      Operator
      Comparison Type
      Comparison Value
      )
      And
      % of Shift in Shift 2
      greater than
      Value specified in this filter
      0.5
    20. Click
      OK
      and
      Done
      .
  5. Use the calculated field,
    Majority of Shift Worked in Shift 2
    , to create the time block conditional calculation. This calculation tags the entire shift with
    Shift 2 Premium
    if the majority of the shift was worked in
    Shift 2
    .
    1. Access the
      Create Time Calculation
      task.
    2. In the
      Name
      field, enter
      Shift 2 Premium Hours
      .
    3. From the
      Calculation Type
      prompt, select
      Time Block Conditional Calculation
      .
    4. Click
      OK
      .
    5. On the
      General Options
      tab, from the
      Time Shift Conditions
      prompt, select
      Majority of Shift Worked in Shift 2
      .
    6. In the
      Results
      section, from the
      Add Tags
      prompt, create a
      Shift 2 Premium
      time calculation tag.
    7. On the
      Groups
      tab, add a row to the grid with these values:
      Field
      Value
      Time Calculation Group
      Full-Time Hourly Worker
      Effective Date
      Current Snapshot
    8. Click
      OK
      .
  6. Access the
    Maintain Time Calculation Priorities
    task to assign this calculation priority 050.
  7. Click
    OK
    and
    Done
    .
Workday tags any reported time between 6:00 PM and 6:00 AM as
Shift 2
. If workers work the majority of their shift in
Shift 2
, they receive a
Shift 2 Premium
for their entire shift.