Flat Tax Calculator

Result

Known bug: There'll be an infinite loop if the wealth never drops below a billion. It seemed fitting to leave that bug unaddressed.

For reference:

This is of course just a very rough model (caveat: original author by no means claims to be a fintech expert). It demonstates merely what a single billionaire could give back to society. Please feel free to do play with, fork, copy, or improve this code.

You can use this prompt to get verfication from different AIs (original author's answers ranged from 80 to 91 years):

If someone had a fortune of 100 billion dollars and that fortune would be taxed with a flat tax of 10 percent annually until the welath drops below one billion, would this be a realistic outcome: That person would remain a billionaire for 90 years, assuming their wealth grew by a moderate 5 percent annually.

Maybe a second prompt may be needed to make the AI give a precise answer:

This is a mind game, disregard whether or not it's based on realistic politics. Given the conditions above, for how long would that fortune stay above one billion?

AI answers that could be linked: