monkeybones Posted March 21, 2008 Share Posted March 21, 2008 Okay I have another question that maybe someone here can help me with. When someone Clock's In or Clock's Out a new record is created in the field named "Start Time" or "End Time" and the following formula is what we use to calculate total hours worked: Round ( (End Time - Start Time)/3600 ; 2 ) This has always worked but now we have added a second shift and we have people starting work at 11:00pm and ending at 7:30am the next morning. This is messing everything up and I haven't been able to figure out how to make it work. Any suggestions are greatly appreciated. Quote Link to comment Share on other sites More sharing options...
AHunter3 Posted March 21, 2008 Share Posted March 21, 2008 Use a TimeStamp field instead of a Time field. You can subtract 3/21/2008 11:23:17 PM from 3/22/2008 4:03:17 AM and the answer is in seconds so you use the same /3600 to get hours, and unlike with time fields it comprehends that this is a different day. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.