Skip to content

Commit

Permalink
Merge pull request #1059 from PolicyEngine/nikhilwoodruff/issue1058
Browse files Browse the repository at this point in the history
Fix state revenue impact double-counting
  • Loading branch information
MaxGhenis authored Jan 4, 2024
2 parents 9070b68 + 2ac9aa5 commit 1337118
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- Bug causing state tax revenues to be double counted.
4 changes: 1 addition & 3 deletions policyengine_api/endpoints/economy/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ def budgetary_impact(baseline: dict, reform: dict) -> dict:
benefit_spending_impact = (
reform["total_benefits"] - baseline["total_benefits"]
)
budgetary_impact = (
tax_revenue_impact + state_tax_revenue_impact - benefit_spending_impact
)
budgetary_impact = tax_revenue_impact - benefit_spending_impact
return dict(
budgetary_impact=budgetary_impact,
tax_revenue_impact=tax_revenue_impact,
Expand Down

0 comments on commit 1337118

Please sign in to comment.