Tax-Calculator CalcFunctions#

Tax-Calculator CalcFunctions

taxcalc.calcfunctions#

Tax-Calculator functions that calculate payroll and individual income taxes.

These functions are imported into the Calculator class.

Note: the parameter_indexing_CPI_offset parameter is no longer used.

taxcalc.calcfunctions.AGI(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.AGIsurtax(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.ALD_InvInc_ec_base(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.AMT(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.AdditionalCTC(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.AdditionalMedicareTax(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.Adj(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.AfterTaxIncome(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.AmOppCreditParts(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.BenefitPrograms(calc)[source]#

Calculate total government cost and consumption value of benefits delivered by non-repealed benefit programs.

Parameters:

calc (Calculator object) – calc represents the reform while self represents the baseline

Returns:

The function modifies calc

Return type:

None

taxcalc.calcfunctions.C1040(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.CTC_new(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.CapGains(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.CharityCredit(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.ChildDepTaxCredit(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.DependentCare(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.EITC(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.EITCamount(basic_frac, phasein_rate, earnings, max_amount, phaseout_start, agi, phaseout_rate)[source]#

Returns EITC amount given specified parameters. English parameter names are used in this function because the EITC formula is not available on IRS forms or in IRS instructions; the extensive IRS EITC look-up table does not reveal the formula.

Parameters:
  • basic_frac (float) – Fraction of maximum earned income credit paid at zero earnings

  • phasein_rate (float) – Earned income credit phasein rate

  • earnings (float) – Earned income for filing unit

  • max_amount (float) – Maximum earned income credit

  • phaseout_start (float) – Earned income credit phaseout start AGI

  • agi (float) – Adjusted Gross Income (AGI)

  • phaseout_rate (float) – Earned income credit phaseout rate

Returns:

eitc – Earned Income Credit

Return type:

float

taxcalc.calcfunctions.EI_PayrollTax(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.EducationTaxCredit(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.ExpandIncome(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.F2441(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.FairShareTax(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.GainsTax(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.IITAX(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.ItemDed(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.LumpSumTax(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.NetInvIncTax(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.NonrefundableCredits(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.PersonalTaxCredit(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.RefundablePayrollTaxCredit(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.SSBenefits(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.SchR(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.SchXYZ(taxable_income, MARS, II_rt1, II_rt2, II_rt3, II_rt4, II_rt5, II_rt6, II_rt7, II_rt8, II_brk1, II_brk2, II_brk3, II_brk4, II_brk5, II_brk6, II_brk7)[source]#

Taxes function returns tax amount given the progressive tax rate schedule specified by the II_rt? and (upper) II_brk? parameters and given taxable income and filing status (MARS).

Parameters:
  • taxable_income (float) – Regular taxable income

  • MARS (int) –

    Filing (marital) status. (1=single, 2=joint, 3=separate,

    4=household-head, 5=widow(er))

  • II_rt1 (float) – Personal income (regular/non-AMT) tax rate 1

  • II_rt2 (float) – Personal income (regular/non-AMT) tax rate 2

  • II_rt3 (float) – Personal income (regular/non-AMT) tax rate 3

  • II_rt4 (float) – Personal income (regular/non-AMT) tax rate 4

  • II_rt5 (float) – Personal income (regular/non-AMT) tax rate 5

  • II_rt6 (float) – Personal income (regular/non-AMT) tax rate 6

  • II_rt7 (float) – Personal income (regular/non-AMT) tax rate 7

  • II_rt8 (float) – Personal income (regular/non-AMT) tax rate 8

  • II_brk1 (list) – Personal income (regular/non-AMT) tax bracket (upper threshold) 1

  • II_brk2 (list) – Personal income (regular/non-AMT) tax bracket (upper threshold) 2

  • II_brk3 (list) – Personal income (regular/non-AMT) tax bracket (upper threshold) 3

  • II_brk4 (list) – Personal income (regular/non-AMT) tax bracket (upper threshold) 4

  • II_brk5 (list) – Personal income (regular/non-AMT) tax bracket (upper threshold) 5

  • II_brk6 (list) – Personal income (regular/non-AMT) tax bracket (upper threshold) 6

  • II_brk7 (list) – Personal income (regular/non-AMT) tax bracket (upper threshold) 7

Return type:

Regular individual income tax liability on all taxable income

taxcalc.calcfunctions.SchXYZTax(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.StdDed(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.TaxInc(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.

taxcalc.calcfunctions.UBI(*args, **kwargs)#

wrapper function nested in make_wrapper function nested in iterate_jit decorator.