What this doesn't model: inflation (real purchasing power), taxes on gains (taxable accounts owe capital gains/income tax), or investment fees (even 0.5% annual fees compound significantly over 30 years). For retirement accounts, gains are tax-deferred or tax-free.