Fix timedelta calculation.