The Heterogeneous Investment Horizon and the Capital Asset Pricing Model: Theory and Implications