Skip to content

Instantly share code, notes, and snippets.

@eupharis
Created May 5, 2014 05:11
Show Gist options
  • Save eupharis/8a8e21677f2d7ed38d55 to your computer and use it in GitHub Desktop.
Save eupharis/8a8e21677f2d7ed38d55 to your computer and use it in GitHub Desktop.
total = 0
RATE_OF_RETURN = 0.10
for i in range(1, 11, 2):
total += 23000 * ((1 + RATE_OF_RETURN) ** i)
# total in Roth IRA after 5 years
print total
# just earnings
print total - (5 * 23000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment