[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]input[/TD]
[TD="align: center"]input[/TD]
[TD="align: center"]formula (arrived on site - driving time)[/TD]
[/TR]
[TR]
[TD="align: center"]DRIVING TIME[/TD]
[TD="align: center"]ARRIVED ON SITE[/TD]
[TD="align: center"]STARTED DRIVING[/TD]
[/TR]
[TR]
[TD="align: center"]1:00[/TD]
[TD="align: center"]15:00[/TD]
[TD="align: center"]14:00[/TD]
[/TR]
[TR]
[TD="align: center"]3:00[/TD]
[TD="align: center"]19:30[/TD]
[TD="align: center"]16:30[/TD]
[/TR]
[TR]
[TD="align: center"]18:00[/TD]
[TD="align: center"]3:00[/TD]
[TD="align: center"]gives negative number ########
- should be 9:00[/TD]
[/TR]
</tbody>[/TABLE]
Who can help me solving above?
I calculate the 'started driving time" by subtracting arrival time from driving time.
When negative i don't know how to calculate for correct time?
<tbody>[TR]
[TD="align: center"]input[/TD]
[TD="align: center"]input[/TD]
[TD="align: center"]formula (arrived on site - driving time)[/TD]
[/TR]
[TR]
[TD="align: center"]DRIVING TIME[/TD]
[TD="align: center"]ARRIVED ON SITE[/TD]
[TD="align: center"]STARTED DRIVING[/TD]
[/TR]
[TR]
[TD="align: center"]1:00[/TD]
[TD="align: center"]15:00[/TD]
[TD="align: center"]14:00[/TD]
[/TR]
[TR]
[TD="align: center"]3:00[/TD]
[TD="align: center"]19:30[/TD]
[TD="align: center"]16:30[/TD]
[/TR]
[TR]
[TD="align: center"]18:00[/TD]
[TD="align: center"]3:00[/TD]
[TD="align: center"]gives negative number ########
- should be 9:00[/TD]
[/TR]
</tbody>[/TABLE]
Who can help me solving above?
I calculate the 'started driving time" by subtracting arrival time from driving time.
When negative i don't know how to calculate for correct time?