The General Theory of Investment Replacement and its Measurement