Calculation for yield to maturity for bonds

Is there a feature that calculates the yield to maturity for bonds? this is meaningful for bond investment.

Thanks.