Date calculations fixed for high latitudes