Leather Knight Posted March 8, 2010 Posted March 8, 2010 I have 3 fields 1) Time In 2) Time Out 3) Total Hours I know this sounds basic, but I am getting crazy figures in the total hours. I did the Total Hours as a number with a calculated value of Time Out - Time In. I thought it would be a simple calculation, but it comes up with things like -12987 when I put in the time in as 07:00 and the out as 18:45. Any suggestions??
comment Posted March 8, 2010 Posted March 8, 2010 What do you want the result to be, when Time In is 07:00:00 and Time Out is 18:45:00?
Vaughan Posted March 8, 2010 Posted March 8, 2010 What should the calculation return when somebody does a late night shift and the time in is 18:45:00 and time out is 07:00:00? You need to track date in and date out as well and include these into your calculation. Something like: ( ( ( Date Out - Date In ) * 86400 ) + ( Time Out - Time In ) ) / 3600
Leather Knight Posted March 8, 2010 Author Posted March 8, 2010 Good point.. Ok now the fields I have are this: 1) Time In 2) Time Out 3) Date (for the starting date) 4) Date2 (For the ending date) 5) Total Hours 6) Pay Rate 7) Overtime 8) Overtime Weekly ******* Now I have it set to record my daily time sheet, and need to make sure that if the hours are over 10 in one day all hours over the 10 for a single day are at time and a half. I also need to have "Overtime Weekly" to check if the total hours for the "Pay Period" is over 40, and if so, all over 40 would be at time and a half. Complicated at best. Since if over 10 is 1.5 and over 40 is 1.5... I may be in over my head on this one... I am including the file so you can see what I am trying to accomplish. It is for my personal timesheets. timesheet.zip
Recommended Posts
This topic is 5432 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