aI){aa=aI-a0}e=e-aI+aa;aI=aa;M=y-aI}var az=ae+aW+a7+aH+this.HEALTHCARE_NET_PREMIUM_CREDIT;var au=F+bc+af+m+a8+bb+f+ar+z+c+ +this.HEALTHCARE_INDIVIDUAL_RESPONSIBILITY;var h=M+au-az;this.TOTAL_TAX_BEFORE_REFUNDABLE_CREDITS=h+az;this.LINE_6D_TOTAL_EXEMPTIONS_CLAIMED=b;this.ADJUSTED_TUITION_FEES_DEDUCTION=ao;this.LINE_32_TOTAL_ADJUSTMENTS_23_THROUGH_31=aR;this.LINE_33_ADJUSTED_GROSS_INCOME=a3;this.LINE_35A_TOTAL_CREDITS=aN;this.MAGI_STUDENT_LOAN_INTEREST_DEDUCTION=J;this.LINE_48_TOTAL_CREDITS=e;this.LINE_49_TOTAL_TAX_AFTER_CREDITS=M;this.LINE_43_CHILD_TAX_CREDIT=aI;this.TOTAL_OTHER_TAXES=au;this.TOTAL_REFUNDABLE_CREDITS=az;this.LINE_59_EARNED_INCOME_CREDIT=ae;this.ADDITIONAL_CHILD_TAX_CREDIT=a7;this.AMERICAN_OPP_NONREFUNDABLE=x;this.AMERICAN_OPP_REFUNDABLE=aH;this.LINE_27_ONEHALF_OF_SELFEMPLOYMENT_TAX=O;this.LINE_50_SELFEMPLOYMENT_TAX=F;this.STUDENT_LOAN_INTEREST_DEDUCTION=ay;this.LINE_40_TAX=L;this.LINE_36_STANDARD_DEDUCTION=u;this.ADJUST_ITEMIZED_DEDUCTIONS=aQ;this.LINE_39_TAXABLE_INCOME=X;this.LINE_36_DEDUCTION_TO_USE=aB;this.LINE_37_INCOME_MINUS_DEDUCTIONS=G;this.LINE_38_DEDUCTION_FOR_EXEMPTIONS=I;this.CAPITAL_GAINS_MSG=ak;this.MEDICARE_UNEARNED_SURTAX=z;this.MEDICARE_INCOME_SURTAX=c;this.MEDICARE_UNEARNED_AMT=aZ;this.MEDICARE_INCOME_AMT=R;return h};KJE.Tax1040Calc.prototype.dTaxAmount=function(b,a){var c=KJE.Default.dTaxAndBracket(b,a);this.BRACKET_TAX_RATE=c.BRACKET;return c.TAX};KJE.Tax1040Calc.prototype.setDependantStatus=function(c,b){if(c>2){throw"Dependent status must be 2 or less."}var e=1;var a=0;var d=0;var f=0;if(this.LINE_1_FILING_STATUS==KJE.Default.iSGL||this.LINE_1_FILING_STATUS==KJE.Default.iMFS||this.LINE_1_FILING_STATUS==KJE.Default.iHOH){if(c==0){f=1;e=0}}else{if(c==0){e=0;f=1;d=1}else{if(c==1){d=1}}}this.LINE_6C_DEPENDANTS=a+(b?b:0);this.LINE_36_CAN_SOMEONE_CLAIM_YOU_AS_A_DEPENDENT=e;this.LINE_6B_SPOUSE_EXEMPTION=d;this.LINE_6A_PERSONAL_EXEMPTION=f};KJE.Tax1040Calc.prototype.getGraphTitle=function(b){var a=this.MSG_TAX_RESULT1+""+this.MSG_TAX_RESULT2+"
";var c=KJE;if(b){a=KJE.replace("AVERAGE_TAX_RATE",c.percent(this.AVERAGE_TAX_RATE,2),a);a=KJE.replace("LINE_22_TOTAL_INCOME",c.dollars(this.LINE_22_TOTAL_INCOME),a);a=KJE.replace("LINE_64_TOTAL_PAYMENTS",c.dollars(this.LINE_64_TOTAL_PAYMENTS),a);a=KJE.replace("REFUND_OR_OVERPAYMENT_TEXT",this.REFUND_OR_OVERPAYMENT_TEXT,a);a=KJE.replace("REFUND_OR_OVERPAYMENT_AMT",c.dollars(this.REFUND_OR_OVERPAYMENT_AMT),a);a=KJE.replace("BRACKET_TAX_RATE",c.percent(this.BRACKET_TAX_RATE,2),a);a=KJE.replace("LINE_56_TOTAL_TAX",c.dollars(this.LINE_56_TOTAL_TAX),a)}return a};KJE.Tax1040Calc.prototype.getGraphTitleMargin=function(b){var a="";if(b){a=this.MARGINAL_TEXT1+""+this.MARGINAL_TEXT2+"
"}else{a=this.MSG_MARGINAL_TEXT1+""+this.MSG_MARGINAL_TEXT2+"
"}return a};KJE.Tax1040Calc.prototype.formatGraph=function(b,c){var a=KJE.replace("LINE_56_TOTAL_TAX",KJE.dollars(this.LINE_56_TOTAL_TAX),this.MSG_TAX_RESULT_REPORT);c[0].setTitle(a);c[0].setTitleGraph(a);c[0].show(true);c[0].paint()};KJE.Default.MEDICARE_UNEARNED_RATE=0.038;KJE.Default.MEDICARE_INCOME_RATE=0.009;KJE.Default.MEDICARE_SURTAX_BEGIN=[250000,200000,200000,125000,250000];KJE.CalcName="Charitable Giving Tax Savings Calculator";KJE.CalcType="CharitableTaxSavings";KJE.CalculatorTitle="Charitable Giving Tax Savings for 2017";KJE.parseInputs=function(a){var c=KJE.getDropBox("DEPENDANTS_STATUS",KJE.parameters.get("DEPENDANTS_STATUS",0),[0,1,2],[KJE.parameters.get("MSG_DEPENDANTS_STATUS1","No."),KJE.parameters.get("MSG_DEPENDANTS_STATUS2","Yes."),KJE.parameters.get("MSG_DEPENDANTS_STATUS3","Both myself and my spouse.")]);a=KJE.replace("**DEPENDANTS_STATUS**",c,a);var b=KJE.getDropBox("LINE_1_FILING_STATUS",KJE.parameters.get("LINE_1_FILING_STATUS",KJE.Default.iMFJ),KJE.Default.FILING_STATUS_ID,KJE.Default.FILING_STATUS_DESC);a=KJE.replace("**LINE_1_FILING_STATUS**",b,a);return a};KJE.initialize=function(){KJE.CalcControl=new KJE.Tax1040Calc();KJE.GuiControl=new KJE.CharitableTaxSavings(KJE.CalcControl)};KJE.CharitableTaxSavings=function(f){var e=KJE;var c=KJE.gLegend;var b=KJE.inputs.items;KJE.DollarSlider("LINE_7_WAGES_SALARIES_TIPS_ETC","Adjusted Gross Income (AGI)",0,10000000,0,0,4);KJE.NumberSlider("LINE_6C_DEPENDANTS","Number of additional dependents",0,10,0);KJE.DollarSlider("LINE_36_ITEMIZED_DEDUCTIONS","Itemized deductions",0,1000000,0,0,3);KJE.DropBox("DEPENDANTS_STATUS","Are you someone's dependent?");KJE.DropBox("LINE_1_FILING_STATUS","Filing status");KJE.DollarSlider("SHDA_16_GIFT_CASH","Additional charitable donation",0,1000000,0,0,3);var a=KJE.gNewGraph(KJE.gSTACKED,"GRAPH1",true,false,KJE.colorList[1],f.getGraphTitle());a._legend._iOrientation=c.TOP_RIGHT;a._legend.setVisible(true);a._showItemLabel=false;a._axisX._fSpacingPercent=0.33;a._bPopDetail=true;var d=KJE.parameters.get("MSG_DROPPER_TITLE","Tax and charitable donation inputs:");KJE.addDropper(new KJE.Dropper("INPUTS",true,d,d),KJE.colorList[0])};KJE.CharitableTaxSavings.prototype.setValues=function(b){var a=KJE.inputs.items;b.LINE_6C_DEPENDANTS_QUALIFYING_FOR_CHILD_TAX_CREDIT=a.LINE_6C_DEPENDANTS.getValue();b.LINE_1_FILING_STATUS=a.LINE_1_FILING_STATUS.getValue();b.LINE_36_ITEMIZED_DEDUCTIONS=a.LINE_36_ITEMIZED_DEDUCTIONS.getValue();b.setDependantStatus(Math.round(a.DEPENDANTS_STATUS.getValue()),a.LINE_6C_DEPENDANTS.getValue());b.LINE_7_WAGES_SALARIES_TIPS_ETC=a.LINE_7_WAGES_SALARIES_TIPS_ETC.getValue();b.SHDA_16_GIFT_CASH=a.SHDA_16_GIFT_CASH.getValue();if(b.SHDA_16_GIFT_CASH>b.LINE_7_WAGES_SALARIES_TIPS_ETC/2){throw ("Additional charitable gift for this calculator is limited to 50% of your AGI.")}if(b.LINE_6C_DEPENDANTS<1&&(b.LINE_1_FILING_STATUS==KJE.Default.iHOH||b.LINE_1_FILING_STATUS==KJE.Default.iWID)){throw"At least one dependent is required for your selected filing status."}};KJE.CharitableTaxSavings.prototype.refresh=function(e){var d=KJE;var c=KJE.gLegend;var b=KJE.inputs.items;var a=KJE.gGraphs[0];a.setTitle(e.getGraphTitle(true));a.removeAll();a.setTitle(e.getGraphTitle(true));a.setGraphCategories(["Charitable Gift","Charitable Gift +10%"]);a.add(new KJE.gGraphDataSeries([e.SHDA_16_GIFT_SAVINGS,e.SHDA_16_GIFTPLUS10_SAVINGS],"Tax Savings",a.getColor(1)));a.add(new KJE.gGraphDataSeries([e.SHDA_16_GIFT_NET,e.GIFTPLUS10_NET],"Net Cost",a.getColor(2)));a._axisY._bAutoMinimum=(e.SHDA_16_GIFT_SAVINGS<0);a.paint()};KJE.Tax1040Calc.prototype.calculateTax1040Calc=function(c){var b=this.SHDA_16_GIFT_CASH;this.SHDA_16_GIFT_CASH=0;this.NOGIFT_TOTAL_TAX=this.dTaxCalculation(0);this.SHDA_16_GIFT_CASH=this.GIFTPLUS10_CASH=Math.round(b*1.1);this.GIFTPLUS10_TOTAL_TAX=this.dTaxCalculation(0);this.SHDA_16_GIFT_CASH=b;var a=this.dTaxCalculation(0);if(b==0){this.MARGINAL_TAX_RATE}else{this.MARGINAL_TAX_RATE=(this.NOGIFT_TOTAL_TAX-a)/b}this.SHDA_16_GIFT_SAVINGS=this.NOGIFT_TOTAL_TAX-a;this.SHDA_16_GIFTPLUS10_SAVINGS=this.NOGIFT_TOTAL_TAX-this.GIFTPLUS10_TOTAL_TAX;this.SHDA_16_GIFT_NET=this.SHDA_16_GIFT_CASH-this.SHDA_16_GIFT_SAVINGS;this.GIFTPLUS10_NET=this.GIFTPLUS10_CASH-this.SHDA_16_GIFTPLUS10_SAVINGS;return a};KJE.Tax1040Calc.prototype.getGraphTitle=function(b){var a=this.MSG_TAX_RESULT1+""+this.MSG_TAX_RESULT2+"
";var c=KJE;if(b){a=KJE.replace("AVERAGE_TAX_RATE",c.percent(this.AVERAGE_TAX_RATE,2),a);a=KJE.replace("SHDA_16_GIFT_CASH",c.dollars(this.SHDA_16_GIFT_CASH),a);a=KJE.replace("SHDA_16_GIFT_SAVINGS",c.dollars(this.SHDA_16_GIFT_SAVINGS),a);a=KJE.replace("BRACKET_TAX_RATE",c.percent(this.BRACKET_TAX_RATE,2),a);a=KJE.replace("MARGINAL_TAX_RATE",c.percent(this.MARGINAL_TAX_RATE,2),a)}else{a=KJE.replace("AVERAGE_TAX_RATE",c.percent(10,2),a);a=KJE.replace("BRACKET_TAX_RATE",c.percent(10,2),a);a=KJE.replace("MARGINAL_TAX_RATE",c.percent(10,2),a);a=KJE.replace("SHDA_16_GIFT_CASH",c.dollars(10000),a);a=KJE.replace("SHDA_16_GIFT_SAVINGS",c.dollars(10000),a)}return a};KJE.Tax1040Calc.prototype.formatTax1040Calc=function(a){a=KJE.replace("NOGIFT_TOTAL_TAX",KJE.dollars(this.NOGIFT_TOTAL_TAX),a);a=KJE.replace("SHDA_16_GIFT_SAVINGS",KJE.dollars(this.SHDA_16_GIFT_SAVINGS),a);a=KJE.replace("SHDA_16_GIFT_NET",KJE.dollars(this.SHDA_16_GIFT_NET),a);a=KJE.replace("GIFTPLUS10_CASH",KJE.dollars(this.GIFTPLUS10_CASH),a);a=KJE.replace("GIFTPLUS10_SAVINGS",KJE.dollars(this.SHDA_16_GIFTPLUS10_SAVINGS),a);a=KJE.replace("GIFTPLUS10_TOTAL_TAX",KJE.dollars(this.GIFTPLUS10_TOTAL_TAX),a);a=KJE.replace("GIFTPLUS10_NET",KJE.dollars(this.GIFTPLUS10_NET),a);return a};KJE.InputScreenText=" **GRAPH1** ";KJE.DefinitionText=" Federal Income Tax Rates:**TAXTABLE_TAXYEAR_DEFINITION** Adjusted Gross Income (AGI)This is your total income for the year. To keep things simple this calculator assumes this is your net income, after deductions for retirement contributions such as 401(k)s, IRAs, etc. Filing statusChoose your filing status. Your filing status determines the income levels for your Federal tax bracket. It is also important for calculating your standard deduction, personal exemptions, and deduction phase out incomes. The table below summarizes the five possible filing status choices. It is important to understand that your marital status as of the last day of the year determines your filing status.
Married Filing Jointly | If you are married, you are able to file a joint return with your spouse. If your spouse died during the tax year, you are still able to file a joint return for that year. You may also choose to file separately under the status \"Married Filing Separately\". |
Qualified Widow(er) | Generally, you qualify for this status if your spouse died during the previous tax year (not the current tax year) and you and your spouse filed a joint tax return in the year immediately prior to their death. You are also required to have at least one dependent child or stepchild for whom you are the primary provider. |
Single | If you are divorced, legally separated or unmarried as of the last day of the year you should use this status. |
Head of Household | This is the status for unmarried individuals that pay for more than half of the cost to keep up a home. This home needs to be the main home for the income tax filer and at least one qualifying relative. You can also choose this status if you are married, but didn't live with your spouse at anytime during the last six months of the year. You also need to provide more than half of the cost to keep up your home and have at least one dependent child living with you. |
Married Filing Separately | If you are married, you have the choice to file separate returns. The filing status for this option is \"Married Filing Separately\". |
For 2017, the standard deductions are: **STANDARDDEDUCTION_TAXYEAR_DEFINITION**
Are you someone's dependent?Choose 'no' if no one can claim you or your spouse as a dependent. Choose 'yes' if someone can claim you as a dependent. Choose 'both you and your spouse if you both are dependents. (You are a dependent if someone supports you and can claim a dependency exemption for you.) Number of additional dependentsA dependent is someone you support and for whom you can claim a dependency exemption. In 2017, each dependent you claim entitles you to receive a $4,050 reduction in your taxable income (see exemptions below). You may also receive a tax credit of up to $1,000 for each dependent child under the age of 17. The credit is, however, phased out at higher incomes. Itemized deductionsThis is the total of your itemized deductions that you can include on schedule A of your Federal income taxes. Do not include the additional charitable donation you are analysing, it will be entered separately below. For most people this includes state income taxes paid for the year, interest on a mortgage and any charitable contributions. Other itemized deductions include certain investment expenses, medical expenses exceeding 7.5% of your adjusted gross income, and some moving expenses. Additional charitable donationThis is your additional proposed donation to charity. This is in addition to the total itemized deductions you have entered. We will compare the tax results with and without this charitable donation included to determine the potential tax savings of such a gift. We assume that the entire amount you enter will be made to qualified organizations and the full amount is tax deductible on Schedule A. There are limitations on charitable contributions based on the type of organization receiving the contribution and whether the property is cash, capital gain property (such as stock), or other property. If you anticipate contributions will exceed 20% of your Adjusted Gross Income, you should be especially aware of these limitations. In addition, if you are contributing property other than cash or stock, there may be an appraisal of the property required.
Please consult your tax advisor related to the specifics of your charitable giving
";KJE.ReportText=' Your income puts you in the BRACKET_TAX_RATE tax bracket. Your marginal tax savings on your gift was MARGINAL_TAX_RATE. This is the percentage of your charitable gift that is "paid for" by a reduction in your Federal income taxes. **GRAPH** Your marginal tax savings may be different than your tax bracket if: - Your gift straddles two income tax brackets.
- Your income is high enough that itemized deductions are phased out. For LINE_1_FILING_STATUS filers this is for incomes over ITEMIZED_REDUCTION_STARTS.
- Your itemized deductions are lower than your standard deduction.
Additional charitable gift | SHDA_16_GIFT_CASH | GIFTPLUS10_CASH |
Estimated tax savings | SHDA_16_GIFT_SAVINGS | GIFTPLUS10_SAVINGS |
*There are limitations on charitable contributions based on the type of organization receiving the contribution and whether the property is cash, capital gain property (such as stock), or other property. If you anticipate contributions will exceed 20% of your Adjusted Gross Income, you should be especially aware of these limitations. In addition, if you are contributing property other than cash or stock, there may be an appraisal of the property required.
Please consult your tax advisor related to the specifics of your charitable giving.
Adjusted Gross Income (AGI) | LINE_7_WAGES_SALARIES_TIPS_ETC |
Filing status | LINE_1_FILING_STATUS |
Personal exemption | LINE_6A_PERSONAL_EXEMPTION |
Spouse exemption | LINE_6B_SPOUSE_EXEMPTION |
Dependents qualifying for child tax credit | LINE_6C_DEPENDANTS |
Itemized deductions | LINE_36_ITEMIZED_DEDUCTIONS |
Additional charitable donation | SHDA_16_GIFT_CASH |
Itemized deductions after phase out ( for LINE_1_FILING_STATUS Filers with incomes over ITEMIZED_REDUCTION_STARTS.) | ADJUST_ITEMIZED_DEDUCTIONS |
Standard deduction | LINE_36_STANDARD_DEDUCTION |
Deduction to use (higher of itemized deductions and standard deduction) | LINE_36_DEDUCTION_TO_USE |
Deduction for exemptions (including phase out for LINE_1_FILING_STATUS Filers with incomes over EX_START_PHASE_OUT.) | LINE_38_DEDUCTION_FOR_EXEMPTIONS |
Taxable income | LINE_39_TAXABLE_INCOME |
';