What is the formula for CPI consumer price index? and how it is use to calculate prices?

2 answers

Prices are used to calculate the Consumer Price Index; not the other way around. See
http://en.wikipedia.org/wiki/United_States_Consumer_Price_Index
for details on how it it calculated
what does the inflation formula shows?