Calculate overtime cost in a Timesheet View

To add a calculated Overtime column to a timesheet view:

  1. Go to a list of timesheets.

  2. Click the View drop-down menu, then click New View.

  3. Click Add Column.

  4. Click Switch to Text Mode, then click Edit Text Mode.

  5. In the Edit Text Mode box, remove the text in the box, then copy and paste the following text mode code:

    displayname=Calculated Overtime Cost
    linkedname=direct
    namekey=totalHours
    querysort=totalHours
    textmode=true
    valueexpression=IF({totalHours}>40,({totalHours}-40)*{user}.{costPerHour},{totalHours}*{user}.{costPerHour})
    valueformat=currencyStringCurrencyRounded
    
    NOTE
    This calculation assumes that the user usually works a 40-hour week.
  6. Click Done, then name the new view and click Save View in a list of timesheets.

    The cost of the overtime of each user is displayed in the Calculated Overtime Cost column.

Previous pageView: baseline variance for Duration and Planned Work in a task View
Next pageView: calculate time and date differences

Workfront