I have a form which has a Start Time and End time and Log Hours.
Log Hours is calculated as follows:
There are two 15 minute breaks throughout the day. One at 9:45 AM to 10:00 AM and one at 2:45 PM to 3:00 PM. What can I do that if the StartTime and EndTime falls in these times for breaks to exclude them the times of breaks from the StartTime and Endtime of the Employee?
How can I do that in the code?
Log Hours is calculated as follows:
Code:
[LogHours] = Round((DateDiff("n", [Starttime], [Endtime]) / 60), 3)
There are two 15 minute breaks throughout the day. One at 9:45 AM to 10:00 AM and one at 2:45 PM to 3:00 PM. What can I do that if the StartTime and EndTime falls in these times for breaks to exclude them the times of breaks from the StartTime and Endtime of the Employee?
How can I do that in the code?