Yield calculation.