Skip to content

Commit

Permalink
Merge pull request #47 from Peter-Metz/calc_table
Browse files Browse the repository at this point in the history
Add variables to output table on web app
  • Loading branch information
Peter-Metz authored Oct 16, 2020
2 parents bcb1ed3 + 2c0b64f commit e796e3a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
14 changes: 10 additions & 4 deletions taxcrunch/cruncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,11 @@ def calc_table(self):
"c00100",
"e02300",
"c02500",
"standard",
"c04470",
"qbided",
"c04800",
"taxbc",
"c07220",
"c11070",
"c07180",
Expand All @@ -447,23 +450,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()
Expand Down
9 changes: 6 additions & 3 deletions taxcrunch/tests/expected_calc_table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e796e3a

Please sign in to comment.