Python Time Monotonic Function In Math