Question: what is the formula for calculating number of moles?
Answer: Use the molecular formula to find the molar mass; to obtain the number of moles, divide the mass of compound by the molar mass of the compound expressed in grams.