How is the CPI calculated formula?