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:
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. -
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.
recommendation-more-help