The answer on these inputs
$1 million produces $40,000 in year one at 4.0%. Against $50,000 of spending that is 80% coverage — the spend is larger than a 4% (or chosen) withdrawal. A constant 5.0% return exhausts the portfolio in year 30. Across 1,000 seeded paths the spend lasts the full horizon in 23% of worlds; the 10th-to-90th ending range is $0 to $1,704,117.
Change the inputs
First-year income at the rate$40,000
Coverage of the spend80%
Years the spend lasts30
1,000-path success23%