`due_date.to_date` is redundant, I think. It can just be `due_date`.