how to calculate the cpi for a given market basket, with given year and prices?