Fixed due date logic.