total_days_left_at_date code and test