Last active
June 6, 2017 17:47
-
-
Save cameron/c49c254eab633a2bf2636969d561ce4b to your computer and use it in GitHub Desktop.
401k -> real estate investment paths: early withdrawal and self-directed (self-directed wins by 50%)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CAPITAL = 100000 | |
REAL_ESTATE_RETURN_RATE = .1 / 12 | |
INCOME_TAX = .28 | |
EARLY_WITHDRAWAL_PENALTY = .1 | |
LONG_TERM_CAPITAL_GAINS_TAX = .2 | |
PERIODS = 30*12 | |
# early withdrawal | |
investment = CAPITAL * (1 - (EARLY_WITHDRAWAL_PENALTY + INCOME_TAX)) | |
for _ in range(PERIODS): | |
investment = investment * (1 + REAL_ESTATE_RETURN_RATE) | |
capital = int(investment * (1 - LONG_TERM_CAPITAL_GAINS_TAX)) | |
print(capital) | |
# 401k | |
investment = CAPITAL | |
for _ in range(PERIODS): | |
investment = investment * (1 + REAL_ESTATE_RETURN_RATE) | |
capital = int(investment * (1 - INCOME_TAX)) | |
print(capital) | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment