The choice of an optimal consumer planning horizon