Retirement-simulator library. It is intended to be used in an exploratory manner in an ObservableHQ notebook.
These concepts are what you have; together, they determine your net worth.
let net_worth = assets - liabilities
Cash flow is money in or out. Together, they determine your net income, which can be positive or negative.
let net_income = income - expense
While technically, asset growth is reinvested investment income, we do not need to model it that way, as it would complicate the picture with details. With investments in a protected tax-deferred retirement account, with dividends and interest automatically reinvested, it is simpler to model as compound growth. However, nothing prevents you from modeling it as an income stream adding to the asset.
The key modeling classes have corresponding interface types, to facilitate working with the raw data without instantiation as a class instance.
Generated using TypeDoc