Hi, I am developing a time sheet and need help with the formulas for ST, OT & DT columns.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Start[/TD]
[TD]Finish[/TD]
[TD]Breaks[/TD]
[TD]ST[/TD]
[TD]OT[/TD]
[TD]DT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]7:00[/TD]
[TD]23:00[/TD]
[TD]1:00[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
In the course of a day:
In the above example I need:
Thank you in advance for any help.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Start[/TD]
[TD]Finish[/TD]
[TD]Breaks[/TD]
[TD]ST[/TD]
[TD]OT[/TD]
[TD]DT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]7:00[/TD]
[TD]23:00[/TD]
[TD]1:00[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
In the course of a day:
- the first 8 hours are at ST (straight time)
- the next 2 hours after 8 are at OT (over time)
- any hours after 10 hours are at DT (double time)
In the above example I need:
- ST to show 8 hrs
- OT to show 2 hrs
- DT to show 5 hrs
Thank you in advance for any help.