Forgot to check leave time for zero value.