If you like your eggs runny, cook them for 3 minutes. If you like your egg whites set with runny yolks, take them off the heat after 5 minutes. For firmer yolks, you can cook them for up to 8 minutes. Keep in mind that they will carry on cooking in the tomato sauce even after you take them off the heat.