=this.ANNUAL_MAX.length?this.ANNUAL_MAX.length-1:c);return this.ANNUAL_MAX[b]+((a+c)<50?0:this.CATCHUP_MAX[b])};KJE.RothvsTraditional401kCalc.prototype.dActualContribution=function(d,b,c,a){return(a&&d!=0?b:c)};KJE.RothvsTraditional401kCalc.prototype.dActualDeduction=function(b,a){return(b>a?a:b)};KJE.CalcName="Traditional vs. Roth 401(k) Calculator";KJE.CalcType="RothvsTraditional401k3";KJE.CalculatorTitleTemplate="Roth 401(k) vs. Traditional 401(k)";KJE.initialize=function(){KJE.CalcControl=new KJE.RothvsTraditional401kCalc();KJE.GuiControl=new KJE.RothvsTraditional401k(KJE.CalcControl)};KJE.RothvsTraditional401k=function(h){var b=KJE;var a=KJE.gLegend;var e=KJE.inputs.items;this.MSG_GRAPH4=KJE.parameters.get("MSG_GRAPH4","Roth 401(k)");this.MSG_GRAPH5=KJE.parameters.get("MSG_GRAPH5","Trad. 401(k) + Tax Savings");this.MSG_GRAPH6=KJE.parameters.get("MSG_GRAPH6","Before taxes");this.MSG_GRAPH7=KJE.parameters.get("MSG_GRAPH7","Total after taxes");this.MSG_GRAPH8=KJE.parameters.get("MSG_GRAPH8","Trad. 401(k)");KJE.NumberSlider("CURRENT_AGE","Current age",1,70,0);KJE.DollarSlider("ANNUAL_CONTRIBUTION","Annual contribution",0,1000000);KJE.InvestRateSlider("RATE_OF_RETURN","Expected rate of return");KJE.NumberSlider("AGE_OF_RETIREMENT","Age of retirement",10,70,0);KJE.PercentSlider("CURRENT_TAX_RATE","Current tax rate",0,50,2);KJE.PercentSlider("RETIREMENT_TAX_RATE","Retirement tax rate",0,50,2);KJE.Label("TOTAL_CONTRIBUTIONS","Total contributions");KJE.Checkbox("SAVE_TAX","Invest traditional tax-savings",true,"Invest any tax-savings generated by traditional contributions");KJE.Checkbox("CONTRIBUTE_MAX","Maximize contributions",false,"Increase future contributions to the maximum allowed");var g=KJE.gNewGraph(KJE.gCATEGORIES,"GRAPH1",true,false,KJE.colorList[1],KJE.parameters.get("MSG_GRAPH3","After-Tax Total At Retirement"));g._showItemLabel=true;g._showItemLabelOnTop=true;g._axisX._fSpacingPercent=0.3;g._grid._showYGridLines=false;g._legend._iOrientation=(a.TOP_RIGHT);g._axisX.setVisible(false);g._axisY.setVisible(true);g._bPopDetail=true;var f=KJE.gNewGraph(KJE.gLINE,"GRAPH2",true,true,KJE.colorList[1],KJE.parameters.get("MSG_GRAPH2","After-Tax Comparison"));f._legend._iOrientation=(a.TOP_RIGHT);f._titleXAxis.setText(KJE.parameters.get("MSG_GRAPH1","Age"));var k=KJE.parameters.get("MSG_DROPPER","Age and retirement plan information:");KJE.addDropper(new KJE.Dropper("INPUTS",true,k,k),KJE.colorList[0]);var j=KJE.parameters.get("MSG_DROPPER2_TITLE","Investment return and taxes:");var d=KJE.parameters.get("MSG_DROPPER2_CLOSETITLE","KJE1 return, KJE2 current tax rate, KJE3 tax during retirement");var c=function(){return j+KJE.subText(KJE.getKJEReplaced(d,e.RATE_OF_RETURN.getFormatted(),e.CURRENT_TAX_RATE.getFormatted(),e.RETIREMENT_TAX_RATE.getFormatted()),"KJECenter")};var i=new KJE.Dropper("INPUTS2",false,j,c);i.setBackground(KJE.colorList[0])};KJE.RothvsTraditional401k.prototype.setValues=function(b){var a=KJE.inputs.items;b.CURRENT_AGE=a.CURRENT_AGE.getValue();b.ANNUAL_CONTRIBUTION=a.ANNUAL_CONTRIBUTION.getValue();b.RATE_OF_RETURN=a.RATE_OF_RETURN.getValue();b.RETIREMENT_RATE_OF_RETURN=6;b.AGE_OF_RETIREMENT=a.AGE_OF_RETIREMENT.getValue();b.CURRENT_TAX_RATE=a.CURRENT_TAX_RATE.getValue();b.RETIREMENT_TAX_RATE=a.RETIREMENT_TAX_RATE.getValue();b.YEARS_OF_WITHDRAWALS=20;b.ANNUAL_PERIODS=12;b.SAVE_TAX=a.SAVE_TAX.getValue();b.bCONTRIBUTE_MAX=a.CONTRIBUTE_MAX.getValue();if(b.bCONTRIBUTE_MAX){a.ANNUAL_CONTRIBUTION.disable(true)}else{a.ANNUAL_CONTRIBUTION.enable()}};KJE.RothvsTraditional401k.prototype.refresh=function(f){var e=KJE;var d=KJE.gLegend;var b=KJE.inputs.items;var a=KJE.gGraphs[1];var c=KJE.gGraphs[0];KJE.setTitleTemplate();a.removeAll();a.setGraphCategories(f.cats);a.add(new KJE.gGraphDataSeries(f.DD_ROTH,this.MSG_GRAPH4,a.getColor(1)));a.add(new KJE.gGraphDataSeries(f.DD_V401K_AF_TAX,(f.SAVE_TAX?this.MSG_GRAPH5:this.MSG_GRAPH8),a.getColor(2)));a.paint();c.removeAll();c.setGraphCategories([this.MSG_GRAPH4,(f.SAVE_TAX?this.MSG_GRAPH5:this.MSG_GRAPH8)]);c.add(new KJE.gGraphDataSeries(f.DS_TOTAL2,this.MSG_GRAPH7,a.getColor(1)));c.paint();b.TOTAL_CONTRIBUTIONS.setText(e.dollars(f.TOTAL_CONTRIBUTIONS,0));b.ANNUAL_CONTRIBUTION.setValue(f.ANNUAL_CONTRIBUTION,true)};KJE.Default.CALC_TYPE_457=1;KJE.Default.CALC_TYPE_401k=0;KJE.Default.CALC_TYPE_403b=2;KJE.InputScreenText=" **GRAPH1** **GRAPH2** ";KJE.DefinitionText=" Current ageYour current age. Age of retirementAge you wish to retire. This calculator assumes that the year you retire, you do not make any contributions to your 401(k). So if you retire at age 65, your last contribution occurs when you are actually 64. Annual contributionThe amount you will contribute to a 401(k) each year. This calculator assumes that you make 12 equal contributions throughout the year at the beginning of each month. The annual maximum for 2017 is $18,000. If you are age 50 or over, a \"catch-up\" provision allows you to contribute even more to your 401(k). Employees age 50 or over can deposit an additional $6,000 into their 401(k) account. It is also important to note that employer contributions do not affect an employee's maximum annual contribution limit. Both the annual maximum and \"catch-up\" provisions are indexed for inflation. It is important to note that some employees are subject to another form of contribution limits. Employees classified as \"Highly Compensated\" may be subject to contribution limits based on their employer's overall 401(k) participation. If you expect your salary to be $120,000 or more in 2017 or was $120,000 or more in 2016, you may need to contact your employer to see if these additional contribution limits apply to you.
Invest traditional tax-savingsCheck this box to invest any tax savings generated by contributions to a traditional 401(k). By investing your tax savings each year, you equalize the total cash flow between the two account types. For example, if you have a 25% income tax rate and contribute $1,000 to your retirement account, the actual cost after taxes would be $750 for the traditional contribution and $1,000 for the Roth contribution. If you do not wish to invest the difference, you are actually \"spending\" more per year with the Roth option and the end result will greatly favor a Roth-type savings plan. You may wish to leave this box unchecked if you have no ability or desire to create an additional investment account outside of your 401(k). Maximize contributionsCheck this box to increase all contributions to the maximum allowed each year. This will include future years that qualify for catch-up contributions. The annual maximum for 2017 is $18,000. When you reach age 50 or over, a \"catch-up\" provision increases the maximum by an additional $6,000. Expected rate of returnThe annual rate of return for your 401(k) account. This calculator assumes that your return is compounded annually and your deposits are made monthly. **ROR_DEFINITION** Current tax rateThe current marginal income tax rate you expect to pay on your taxable investments. Use the table below to assist you in determining your current tax rate. **TAXTABLE_CURRENT_DEFINITION** Retirement tax rateThe marginal tax rate you expect to pay on your investments at retirement. After tax total at retirementFor the Roth 401(k), this is the total value of the account. For the traditional 401(k), this is the sum of two parts: 1) The value of the account after you pay income taxes on all earnings and tax deductible contributions and 2) what you would have earned if you had invested (in an ordinary taxable account) any income tax savings. ";KJE.ReportText=' RESULTS_MSG **GRAPH** Step 1: First we found the value of a Roth 401(k) if you contributed ANNUAL_CONTRIBUTION per year for YEARS_UNTIL_RETIREMENT years earning an assumed RATE_OF_RETURN per year. This equaled TOTAL_ROTH. Since qualified withdrawals from a Roth 401(k) are not taxed, the total value remains TOTAL_ROTH.
Step 2: We then computed the totals for a traditional 401(k). Again we determined the value of ANNUAL_CONTRIBUTION per year for YEARS_UNTIL_RETIREMENT years earning an assumed RATE_OF_RETURN per year. This is the same amount as the Roth 401(k) total, V401K_TOTAL_BF_TAX. However, contributions and all earnings in a traditional 401(k) are taxable when they are withdrawn. After taxes, the value of your traditional 401(k) account would be V401K_TOTAL_AF_TAX.
Step 3: Since you receive a current year tax deduction for any traditional 401(k) contributions, we need to determine the value of investing this tax savings and add this amount to the traditional 401(k) total. If we forget this step, our comparison will not be equal. We would, in effect, be contributing more to our Roth 401(k) than the traditional 401(k). If your tax savings were invested for YEARS_UNTIL_RETIREMENT years at an assumed rate of RATE_OF_RETURN, this returns a total of TOTAL_TAXABLE after taxes.
Total contributions MSG_CONTRIBUTE_LBL | TOTAL_CONTRIBUTIONS | TOTAL_CONTRIBUTIONS |
Total before taxes | V401K_TOTAL_BF_TAX | TOTAL_ROTH |
Value of investing tax savings | + TOTAL_TAXABLE | + 0 |
Taxes for 401(k) at retirement | - V401K_TOTAL_TAXES | - 0 |
Value at retirement (age AGE_OF_RETIREMENT) | TOTAL_401K | TOTAL_ROTH |
Annual contribution* MSG_CONTRIBUTE_LBL | ANNUAL_CONTRIBUTION | Current age | CURRENT_AGE |
Years until retirement | YEARS_UNTIL_RETIREMENT | Age of retirement | AGE_OF_RETIREMENT |
Expected rate of return | RATE_OF_RETURN | | |
Current tax rate | CURRENT_TAX_RATE | Retirement tax rate | RETIREMENT_TAX_RATE |
---|
**GRAPH** **REPEATING GROUP** ';