From: Scott Gasch Date: Wed, 15 Jan 2020 03:58:44 +0000 (-0800) Subject: Changes some default parameters -- social security amounts and starting X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=0f582ad561cf7a8435eb0c752457bde2bb55a2d1;p=retire.git Changes some default parameters -- social security amounts and starting ages. Changes behavior of Roth conversion. Fixes exception swallowing. Adds comments and assertions. --- diff --git a/parameters.py b/parameters.py index a8eb839..ae66e15 100644 --- a/parameters.py +++ b/parameters.py @@ -47,8 +47,9 @@ class parameters(object): # age 67 - $30,000 age 67 - $30,420 # age 70 - $37,200 age 70 - $37,728 # - self.social_security_age = [ 0, 62, 70 ] - self.initial_social_security_dollars = [ 0, 15000, 25000 ] + # X SCOTT LYNN + self.social_security_age = [ 0, 62, 62 ] + self.initial_social_security_dollars = [ 0, 21000, 21000 ] # Tax details... the standard deduction amount and tax # brackets for ordinary income and long term capital gains. diff --git a/retire.py b/retire.py index a0b28cd..3282a9e 100755 --- a/retire.py +++ b/retire.py @@ -185,6 +185,7 @@ class simulation(object): money_needed = 0 look_for_conversions = True + tax_limit = 25000 while True: # Maybe do some opportunistic Roth conversions. taxes_due = taxes.approximate_taxes( @@ -193,12 +194,11 @@ class simulation(object): self.params.get_federal_dividends_and_long_term_gains_income_tax_brackets()) total_income = taxes.get_total_income() tax_rate = float(taxes_due) / float(total_income) - print "INCOME: %s, TAXES: %s\n" % (utils.format_money(total_income), utils.format_money(taxes_due)) if (look_for_conversions and tax_rate <= 0.14 and - taxes_due < 20000 and - self.year <= 2035): + taxes_due < tax_limit and + self.year <= 2036): look_for_conversions = self.do_opportunistic_roth_conversions(taxes) # because these conversions affect taxes, spin @@ -236,7 +236,8 @@ class simulation(object): self.params.get_federal_ordinary_income_tax_brackets().adjust_with_multiplier(inflation_multiplier) self.params.get_federal_dividends_and_long_term_gains_income_tax_brackets().adjust_with_multiplier(inflation_multiplier) - except: + except Exception as e: + print "Exception: %s" % e print "Ran out of money!!!" pass