new function checkIfOverdue