Theory of purchasing power parity