# How to calculate the YTM of an inflation linked bond

I'm trying to find a formula to calculate the YTM of inflation-linked bonds. I've tried using the conventional YTM formula for bonds and then just adjusting the coupon to the inflation adjusted coupon, but this doesn't seem to be giving an accurate result.

Could someone point me in the correct direction?