Valuing TIPS

Does anyone know how to value TIPS? I’m trying to figure out when you make money buying TIPS (I know when inflation goes up) but how much money do you actually make if actual inflation is above expected? Is there some sort of modified duration formula to apply to see the bonds sensitivity to a changes in rates plus CPI?