Help

The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.

Calculate Hours of 40 Within a Worked Week

Topic Labels: Formulas
223 1
cancel
Showing results for 
Search instead for 
Did you mean: 
caitlin_jmartin
4 - Data Explorer
4 - Data Explorer

Hi there,

 

I am trying to calculate employee hours worked over 40 within the span of a worked week (Sunday - Saturday) for overtime calculations, and can't figure out what the formula would be for this. I have start dates and times on my sheet already.

1 Reply 1
DisraeliGears01
7 - App Architect
7 - App Architect

Conceptualizing this, you need at least two tables, one for shifts and one for employees. In your shifts table you have your shift start/shift end fields and then you add a formula field using DATETIME_DIFF() to calculate the difference between the two (probably in minutes as it only returns whole integers). You could add another formula or write on top to format the minutes into partial hours. 

Then you add a rollup field in your employee table summing the hours value, and you can add a date filter inside that field. This format gives you at a glance views of hours totals. If you're desiring longer term record keeping, a third table for pay period may be necessary.