I tried looking at old threads, but I can't seem to find anything that works for my case.
I have a time sheet similar to the one below.
[TABLE="width: 500"]
day
[/td]time in
[/td]time out
[/td]time in
[/td]time out
[/td]hours worked
[/td]Monday
[/td]8:30
[/td]4:30
[/td]Tuesday
[/td]8
[/td]12:30
[/td]1:30
[/td]5
[/td]
[/TABLE]
I'm trying to write a code to calculate the hours worked (in both cases 8 for the example above). I've tried different number formats, but I can't find one that works.
Any ideas or comments would be greatly appreciated