Git Product home page Git Product logo

Comments (3)

MaxGhenis avatar MaxGhenis commented on August 24, 2024

Hi @gmfenton, I'm not sure why Tax-Calculator gives a $0 impact, but just as another benchmark, PolicyEngine estimates that raising the ACTC from $1,600 to $2,000 in 2023 would cost about $800 million in 2023. TPC's 2023 estimate of $2.8 billion may exceed this in part if they assumed a $1,500 baseline ACTC for 2023, and also because PolicyEngine currently uses the CPS rather than the PUF.

Have you examined a sample household with Tax-Calculator? Sometimes that can help diagnose issues; e.g., here's how PolicyEngine shows it affecting a single parent of one:
image

from tax-calculator.

jdebacker avatar jdebacker commented on August 24, 2024

@gmfenton I think the issues here is just how you are writing your reform. If you want to change the ACTC_c parameter for two different ranges of years, you need to do that in the same dictionary. e.g., see the specification of the json string in the code below:

import taxcalc as tc
recs = tc.Records() 
pol = tc.Policy() 
calc1 = tc.Calculator(policy=pol, records=recs) 

# Create an instance of the calculator class for reform policy 
json_str = '{"ACTC_c": {"2023": 2000, "2026": 1000}}'
reform = tc.Policy.read_json_reform(json_str)
pol.implement_reform(reform) 
calc2 = tc.Calculator(policy=pol, records=recs) 

# Calculate difference in tax revenue for year Y
for Y in range(2023, 2032):
    CY = Y
    calc1.advance_to_year(CY) 
    calc2.advance_to_year(CY) 
    calc1.calc_all() 
    calc2.calc_all() 
    iitax_rev1 = calc1.weighted_total('iitax') 
    iitax_rev2 = calc2.weighted_total('iitax') 
    diff = iitax_rev2-iitax_rev1 
    print(f'{CY}_reform_tax_rev= ${diff:,.0f}') 

Which uses the CPS file and gives results similar to what you cite from TPC (around $2 billion per year):

2023_reform_tax_rev= $-1,804,884,226
2024_reform_tax_rev= $-1,937,256,092
2025_reform_tax_rev= $-2,020,715,288
2026_reform_tax_rev= $0
2027_reform_tax_rev= $0
2028_reform_tax_rev= $0
2029_reform_tax_rev= $0
2030_reform_tax_rev= $0
2031_reform_tax_rev= $0

from tax-calculator.

gmfenton avatar gmfenton commented on August 24, 2024

Thank you @MaxGhenis and @jdebacker for your quick responses!

Yes Jason, including the separate year ranges in the same dictionary fixed it, much appreciated.

from tax-calculator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.