How do I calculate the yield curve?
It is important to understand how to calculate the yield curve in order to make informed investment decisions. The Treasury yield curve is a benchmark for other debt in the market and can be used to predict future interest rate changes. Rates can be found on the Treasury's website each trading day. To calculate the yield curve, use the formula YTM = (Price - Par Value) / Par Value / Number of Years to Maturity.
This formula can be used in programs such as Sourcetable