Asset allocation and location over the life cycle with investment-linked survival-contingent payouts