Adjusted deleteTodo formula