How many attempts should a person take at passing before they give up?

How many attempts should a person take at passing before they give up?