Fix max time for calendar