diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29b..6f4c372f 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: patch + changes: + fixed: + - Bug causing state tax revenues to be double counted. diff --git a/policyengine_api/endpoints/economy/compare.py b/policyengine_api/endpoints/economy/compare.py index 198f152d..10b9f5de 100644 --- a/policyengine_api/endpoints/economy/compare.py +++ b/policyengine_api/endpoints/economy/compare.py @@ -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,