Calculation of moles and molarity of nitrate ions in a solution