Avatar

Level 10

The form does not consider a work day to cross midnight. That completely changes the orientation and complexity of the form.

Given 24 hour time fomat and epoch time:

If time in < time out, time worked = time out - time in

If time in > time out, time wokred = (midnight - time in) + time out