Fix: Time difference calculation was incorrect