Heterogeneous discounting in economic problems