Hi Guys,
I am a bit confused as to how can I calculate time in the following cases. I need to calculate time worked before 5:00 and after 19:00 for the given shift start and end times along with the meal break times.
[TABLE="width: 495"]
<colgroup><col span="6"><col></colgroup><tbody>[TR]
[TD]Start[/TD]
[TD]Meal Start[/TD]
[TD]Meal End[/TD]
[TD]Meal Start[/TD]
[TD]Meal End[/TD]
[TD]Finish[/TD]
[TD]Expected Answer[/TD]
[/TR]
[TR]
[TD]03:57[/TD]
[TD]08:34[/TD]
[TD]09:26[/TD]
[TD]11:04[/TD]
[TD]11:56[/TD]
[TD]13:44[/TD]
[TD="align: right"]01:03[/TD]
[/TR]
[TR]
[TD]13:46[/TD]
[TD]15:34[/TD]
[TD]16:26[/TD]
[TD]19:04[/TD]
[TD]19:50[/TD]
[TD]22:59[/TD]
[TD="align: right"]03:13[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for your help.
Asad
I am a bit confused as to how can I calculate time in the following cases. I need to calculate time worked before 5:00 and after 19:00 for the given shift start and end times along with the meal break times.
[TABLE="width: 495"]
<colgroup><col span="6"><col></colgroup><tbody>[TR]
[TD]Start[/TD]
[TD]Meal Start[/TD]
[TD]Meal End[/TD]
[TD]Meal Start[/TD]
[TD]Meal End[/TD]
[TD]Finish[/TD]
[TD]Expected Answer[/TD]
[/TR]
[TR]
[TD]03:57[/TD]
[TD]08:34[/TD]
[TD]09:26[/TD]
[TD]11:04[/TD]
[TD]11:56[/TD]
[TD]13:44[/TD]
[TD="align: right"]01:03[/TD]
[/TR]
[TR]
[TD]13:46[/TD]
[TD]15:34[/TD]
[TD]16:26[/TD]
[TD]19:04[/TD]
[TD]19:50[/TD]
[TD]22:59[/TD]
[TD="align: right"]03:13[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for your help.
Asad