The egg is done cooking when the yolk is cooked the way you like it. Over easy the yolk is runny, over medium, the yolk is thick but not hard, and over hard the yolk is fully cooked with no runny bits.