View: calculate overtime cost in a Timesheet View
Overtime is not calculated by default in Adobe Workfront, but you can create a Timesheet report that calculates overtime.
If the user is associated with a Cost per Hour rate in their profile, you can also calculate the amount of cost for the overtime of that user.
For information about associating users with Cost per Hour rates, see the article Configure My Settings.
Access requirements
| table 0-row-2 1-row-2 2-row-2 3-row-2 layout-auto html-authored no-header | |
|---|---|
| Adobe Workfront package | Any |
| Adobe Workfront license |
Contributor or Request to modify a filter Standard or Plan to modify a report |
| Access level configurations |
Edit access to Reports, Dashboards, Calendars to modify a report Edit access to Filters, Views, Groupings to modify a filter |
| Object permissions | Manage permissions to a report |
For more detail about the information in this table, see Access requirements in Workfront documentation.
Calculate overtime cost in a Timesheet View
To add a calculated Overtime column to a timesheet view:
-
Go to a list of timesheets.
-
Click the View drop-down menu, then click New View.
-
Click Add Column.
-
Click Switch to Text Mode, then click Edit Text Mode.
-
In the Edit Text Mode box, remove the text in the box, then copy and paste the following text mode code:
code language-none displayname=Calculated Overtime Cost linkedname=direct namekey=totalHours querysort=totalHours textmode=true valueexpression=IF({totalHours}>40,({totalHours}-40)*{user}.{costPerHour},{totalHours}*{user}.{costPerHour}) valueformat=currencyStringCurrencyRoundednote note NOTE This calculation assumes that the user usually works a 40-hour week. -
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.