Check the amount to end the task.