I need to calculate hours worked for a single day - timesheet
- April 23, 2021
- 3 replies
- 18111 views
Hello
I am needing a script to calculate the hours worked for a single day. The only scripts I have been able to find in the community include dates. I have tried modifying those scripts but have not had any luck.
The employee will clock in when they arrive to work. They will clock out for lunch. Then clock back in when they return from lunch, and finally clock out when they leave for the day. The clock in times will be in “h:mm tt” format. They hours worked will display to the right and total hours will display at the bottom.
I am providing a screen shot with dummy text to display exactly what I need.
Hourse-Worked-1, Hours -Worked-2 and TOTAL have a custom script format of:
event.value = util.printf("%,001.2f", event.value / 60);
Can anyone help?

