use treatment.created_at not treatment.date to calculate COB