Can someone help me write formula to calculate (early, late, ontime)?
If departure time - schedule time > -30 sec then "early"
If departure time - schedule time > 300 sec then "late"
If departure time - schedule time between -30 sec and 300 sec then "ontime"
In other words if bus departs more than half-minute before schedule time "early"
If bus departs more than 5-minutes after schedule time "late"
else bus "ontime"
Can someone help me write syntax for this?
Thanks.
If departure time - schedule time > -30 sec then "early"
If departure time - schedule time > 300 sec then "late"
If departure time - schedule time between -30 sec and 300 sec then "ontime"
In other words if bus departs more than half-minute before schedule time "early"
If bus departs more than 5-minutes after schedule time "late"
else bus "ontime"
Can someone help me write syntax for this?
Thanks.