Investment function of economic stability