From 2c0b64f29771222d9a764b79718ea782d0804611 Mon Sep 17 00:00:00 2001 From: Peter-Metz Date: Wed, 14 Oct 2020 08:45:45 -0400 Subject: [PATCH] add vars to calc_table and reorg --- taxcrunch/cruncher.py | 14 ++++++++++---- taxcrunch/tests/expected_calc_table.csv | 9 ++++++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/taxcrunch/cruncher.py b/taxcrunch/cruncher.py index d277a4d..ff6108e 100644 --- a/taxcrunch/cruncher.py +++ b/taxcrunch/cruncher.py @@ -434,8 +434,11 @@ def calc_table(self): "c00100", "e02300", "c02500", + "standard", "c04470", + "qbided", "c04800", + "taxbc", "c07220", "c11070", "c07180", @@ -444,23 +447,26 @@ def calc_table(self): "c09600", "niit", "c05800", - "qbided", + "payrolltax" ] labels = [ "Adjusted Gross Income (AGI)", "Unemployment Insurance in AGI", "Social Security in AGI", + "Standard Deduction (Zero for Itemizers)", "Itemized Deductions", + "Qualified Business Income Deduction", "Taxable Income", + "Regular Tax Before Credits", "Child Tax Credit (CTC)", "CTC Refundable", "Child Care Credit", - "Earned Income Tax Credit (EITC)", + "Earned Income Tax Credit", "Alternative Minimum Tax (AMT) Taxable Income", "AMT Liability", "Net Investment Income Tax", - "Income Tax Before Credits", - "Qualified Business Income Deduction", + "Income Tax Before Credits (Regular + AMT)", + "Payroll Tax (Employee + Employer)" ] df_calc1 = self.calc1.dataframe(calculation).transpose() diff --git a/taxcrunch/tests/expected_calc_table.csv b/taxcrunch/tests/expected_calc_table.csv index 1d4a74b..6d9a8a2 100644 --- a/taxcrunch/tests/expected_calc_table.csv +++ b/taxcrunch/tests/expected_calc_table.csv @@ -2,14 +2,17 @@ Adjusted Gross Income (AGI),100000.0,100000.0,100001.0 Unemployment Insurance in AGI,0.0,0.0,0.0 Social Security in AGI,0.0,0.0,0.0 +Standard Deduction (Zero for Itemizers),12200.0,6644.15,6644.15 Itemized Deductions,0.0,0.0,0.0 +Qualified Business Income Deduction,0.0,0.0,0.0 Taxable Income,87800.0,89118.24,89119.24 +Regular Tax Before Credits,15246.5,17820.92,17821.17 Child Tax Credit (CTC),0.0,0.0,0.0 CTC Refundable,0.0,0.0,0.0 Child Care Credit,0.0,0.0,0.0 -Earned Income Tax Credit (EITC),0.0,0.0,0.0 +Earned Income Tax Credit,0.0,0.0,0.0 Alternative Minimum Tax (AMT) Taxable Income,100000.0,100000.0,100001.0 AMT Liability,0.0,0.0,0.0 Net Investment Income Tax,0.0,0.0,0.0 -Income Tax Before Credits,15246.5,17820.92,17821.17 -Qualified Business Income Deduction,0.0,0.0,0.0 +Income Tax Before Credits (Regular + AMT),15246.5,17820.92,17821.17 +Payroll Tax (Employee + Employer),15300.0,15300.0,15300.15