Calculation of CPI and its use in determining inflation