Testing the 4% rule on every retirement since 1872 in 40 lines of Python
The 4% rule says: in the first year of retirement, take out 4% of your savings. Every year after that, take out the same amount, raised with inflation. Do that, and the money should last 30 years. It
