Skip to content

Commit

Permalink
Merge pull request #2765 from martinholmer/add-ctc_total-variable
Browse files Browse the repository at this point in the history
Add ctc_total variable
  • Loading branch information
martinholmer authored Jul 5, 2024
2 parents 0c03933 + 1c0bac2 commit 30a9771
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
13 changes: 10 additions & 3 deletions taxcalc/calcfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3299,7 +3299,8 @@ def CTC_new(CTC_new_c, CTC_new_rt, CTC_new_c_under6_bonus,
@iterate_jit(nopython=True)
def IITAX(c59660, c11070, c10960, personal_refundable_credit, ctc_new, rptc,
c09200, payrolltax, CDCC_refund, recovery_rebate_credit,
eitc, c07220, odc, CTC_refundable, ODC_refundable, refund, iitax, combined):
eitc, c07220, odc, CTC_refundable, ODC_refundable, refund,
ctc_total, iitax, combined):
"""
Computes final taxes.
Expand All @@ -3326,6 +3327,8 @@ def IITAX(c59660, c11070, c10960, personal_refundable_credit, ctc_new, rptc,
Earned Income Credit
refund: float
Total refundable income tax credits
ctc_total: float
Total CTC amount (c07220 + c11070 + odc + ctc_new)
iitax: float
Total federal individual income tax liability
combined: float
Expand All @@ -3337,6 +3340,8 @@ def IITAX(c59660, c11070, c10960, personal_refundable_credit, ctc_new, rptc,
Earned Income Credit
refund: float
Total refundable income tax credits
ctc_total: float
Total CTC amount (c07220 + c11070 + odc + ctc_new)
iitax: float
Total federal individual income tax liability
combined: float
Expand All @@ -3352,10 +3357,12 @@ def IITAX(c59660, c11070, c10960, personal_refundable_credit, ctc_new, rptc,
else:
odc_refund = 0.
refund = (eitc + c11070 + c10960 + CDCC_refund + recovery_rebate_credit +
personal_refundable_credit + ctc_new + rptc + ctc_refund + odc_refund)
personal_refundable_credit + ctc_new + rptc + ctc_refund +
odc_refund)
ctc_total = c07220 + c11070 + odc + ctc_new
iitax = c09200 - refund
combined = iitax + payrolltax
return (eitc, refund, iitax, combined)
return (eitc, refund, ctc_total, iitax, combined)


@JIT(nopython=True)
Expand Down
11 changes: 5 additions & 6 deletions taxcalc/records_variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -491,12 +491,6 @@
"form": {"2013-2016": "sample construction info"},
"availability": "taxdata_puf, taxdata_cps"
},
"s006_original": {
"type": "float",
"desc": "Sample weight before reweighting (not used in tax-calculation logic)",
"form": {"2013-2016": "sample construction info"},
"availability": "tax-microdata_tmd"
},
"data_source": {
"type": "int",
"desc": "1 if unit is created primarily from IRS-SOI PUF data; 0 if created primarily from CPS data (not used in tax-calculation logic)",
Expand Down Expand Up @@ -1047,6 +1041,11 @@
"desc": "Other Dependent Credit",
"form": {"2013-20??": "calculated variable"}
},
"ctc_total": {
"type": "float",
"desc": "Total CTC amount (c07220 + c11070 + odc + ctc_new)",
"form": {"2013-20??": "calculated variable"}
},
"personal_refundable_credit": {
"type": "float",
"desc": "Personal refundable credit",
Expand Down

0 comments on commit 30a9771

Please sign in to comment.