Brainiac58 Posted June 18, 2007 Posted June 18, 2007 Hello all- I am working on a database that will help supervisors schedule staff for hours. I have a field for start time (StartTime) and End time (EndTime) and want to calculate to hours worked each shift and hours of overtime worked each shift. I had the calculation for total hours worked as (EndTime-StartTime) with the result set as a number. When I enter in a start time of 5:30 and an end time of 15:00, I get 3420. Can anyone tell me what I need to do to fix this calculation? Thanks.
mr_vodka Posted June 18, 2007 Posted June 18, 2007 It needs to be a time result. Also do a quick search for +subtracting +time and you will come across posts regarding this matter as well as compensating for crossing midnight.
Brainiac58 Posted June 22, 2007 Author Posted June 22, 2007 Thanks for the direction! Those posts had exactly what I was looking for ;)
Recommended Posts
This topic is 6425 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now