Establishing a General Framework for Temporal Discounting