Calculating theoretical and actual yield