Time is now calculated properly.