Refactor time_until_deadline calculation floor in Project model.