I'm trying to calculate time against a deadline (early or late) in minutes using military time format such as:
Deadline = 15:00
Actual = 15:20
Variance = 0:20
or
Deadline 15:00
Actual = 14:50
Variance = -0:10
However when the actual time crosses midnight the variance is incorrect. So I need to find some type of solution to calculate time variance either before the deadline, after the deadline, or after the deadline when past midnight. I'm stumped. Any suggestions would be gratefully appreciated.
Deadline = 15:00
Actual = 15:20
Variance = 0:20
or
Deadline 15:00
Actual = 14:50
Variance = -0:10
However when the actual time crosses midnight the variance is incorrect. So I need to find some type of solution to calculate time variance either before the deadline, after the deadline, or after the deadline when past midnight. I'm stumped. Any suggestions would be gratefully appreciated.