Calculation of moles and volumes