found error when due date is in a new year
code cleanup