Life amortization in deterministic and stochastic environment