YTM is the yield that equates bond value to price by discounting all future cash flows.
highlighted = computed this step
Solve for YTM
Yield to maturity is the discount rate that makes discounted contract value equal the observed price.
P=t=1∑n(1+YTM)tCt
Par shortcut
In this par bond, the observed price is $1,000.00 at 10% coupon and the exact solution is 10%. A general off-par YTM is typically found by numerical root-finding.
10% for par in this exact setup