Calculation of percent yield of ammonia