So I created this retirement calculator here http://www.abrandao.com/retire
And the idea is if you save enough you can so when you withdraw say 4% you don't eat too much into your savings.
But based on my calculation 4% of 500000 is $20k but next year it will be 4% of 480000 and so on.. how can I determine what % of withdrawal will keep the withdrawn value the same over a time period say 30 years.