Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variables to output table on web app #47

Merged
merged 1 commit into from
Oct 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions taxcrunch/cruncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,11 @@ def calc_table(self):
"c00100",
"e02300",
"c02500",
"standard",
"c04470",
"qbided",
"c04800",
"taxbc",
"c07220",
"c11070",
"c07180",
Expand All @@ -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()
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