calculate theoretical yield