okama.PortfolioDCF.survival_date

property PortfolioDCF.survival_date

Get the date when the portfolio balance become negative considering withdrawals on the historical data.

The portfolio survival date (longevity date) depends on the investment strategy: asset allocation, rebalancing, withdrawals rate etc.

The withdrawals are defined by the cashflow parameter of the portfolio.

Returns:
pd.Timestamp

The portfolio survival date (longevity period) in years.

Examples

>>> pf = ok.Portfolio(
...    ['SPY.US', 'AGG.US'],
...    ccy='USD',
...    first_date='2010-01',
...    initial_amount=100_000,
...    cashflow=-1_000
...)
>>> pf.dcf.survival_date
Timestamp('2021-08-01 00:00:00')