odometer:
Unless, in that case, you add one day's worth of minutes to compensate.
I think what @PaulS was pointing out is the risk that you would not realize that the two times were either side of midnight. Once you have that figured out there are many ways to get the correct interval.
...R