How ML Stats Calculates Portfolio Modeler And Retirement Planner
This page explains the core calculation flow used by both planning tools. Both tools run deterministic, month-by-month simulations based on your inputs and assumptions.
Portfolio Modeler: Calculation Flow
- Build the portfolio from target weights and optional growth/yield overrides.
- For each month, apply price growth to holdings.
- Calculate monthly dividends and add them to cash.
- Fund monthly income target from cash first.
- If needed, sell holdings according to withdrawal strategy (lowest growth, highest growth, or equal).
- Track monthly shortfall if assets cannot fully fund the target.
- If DRIP is on, reinvest leftover cash by current weights.
- If rebalance is scheduled, rebalance holdings back to target weights.
Retirement Planner: Calculation Flow
- Build monthly expenses from base spending plus recurring and one-time events.
- Apply inflation to base spending and inflation-enabled annual events.
- Add fixed income sources (Social Security and pension streams).
- Advance each investment account for growth and dividends.
- Fill any remaining gap using withdrawal order rules.
- Apply account-level DRIP and rebalance settings after withdrawals each month.
- Record shortfalls, first shortfall timing, and ending net worth.
Retirement Planner Withdrawal Order
- Cash accounts first (priority order, draw-enabled only).
- Taxable Brokerage accounts.
- Traditional retirement accounts: 401k and IRA.
- Roth IRA accounts.
Inside each investment account, the model uses account cash first, then sells holdings based on that account's withdrawal strategy.
Retirement Age Gating And Penalties
- Retirement account withdrawals are gated by each account's configured withdrawal start age.
- The current model does not automatically apply a fixed 10% early withdrawal penalty.
- If you want to model a penalty effect, you can add equivalent expense events or increase spending assumptions.
Important Assumptions And Limitations
- Assumptions are deterministic. The tools do not model market randomness in these projections.
- Taxes are not fully modeled as a tax engine.
- Transaction costs, slippage, and advisor fees are not explicitly modeled.
- Results are informational and educational, not guarantees or personalized financial advice.