The Yield to Maturity (YTM) formula involves calculating a bond’s internal rate of return (IRR). It considers the present value of the bond’s future cash flows, including coupon payments and the principal repayment at maturity. The formula for YTM is complex and typically requires iterative calculations. It incorporates the bond’s current market value, coupon rate, time to maturity, and the value received at maturity.