duedate: refactored handleovercount (more flexible)