Calculating theoretical and percent yield