From 4d167a11d0becc4a5d03e4809fd7c238f6b82080 Mon Sep 17 00:00:00 2001 From: Bodi Yang Date: Thu, 2 Nov 2023 10:38:34 -0400 Subject: [PATCH] adjustment to the code --- taxcalc/calcfunctions.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/taxcalc/calcfunctions.py b/taxcalc/calcfunctions.py index 3fe290632..edd7f7376 100644 --- a/taxcalc/calcfunctions.py +++ b/taxcalc/calcfunctions.py @@ -3309,12 +3309,16 @@ def IITAX(c59660, c11070, c10960, personal_refundable_credit, ctc_new, rptc, Sum of iitax and payrolltax and lumpsum_tax """ eitc = c59660 - if CTC_refundable and ODC_refundable: - ctc_odc_refund = c07220 + odc + if CTC_refundable: + ctc_refund = c07220 + else: + ctc_refund = 0. + if ODC_refundable: + odc_refund = odc else: - ctc_odc_refund = 0. + odc_refund = 0. refund = (eitc + c11070 + c10960 + CDCC_refund + recovery_rebate_credit + - personal_refundable_credit + ctc_new + rptc + ctc_odc_refund) + personal_refundable_credit + ctc_new + rptc + ctc_refund + odc_refund) iitax = c09200 - refund combined = iitax + payrolltax return (eitc, refund, iitax, combined)