TAXSIM emulator using the PolicyEngine US federal and state tax calculator
git clone https://github.com/PolicyEngine/policyengine-taxsim
pip install -U policyengine-us
The emulator takes a .raw file in the form of a csv. This is the same form of input that Taxsim-35 takes.
In terminal, run python3 /Path/to/taxsim_emulator.py /Path/to/your/input_file.raw
input:
![Screenshot 2024-07-10 at 6 29 17 PM](https://private-user-images.githubusercontent.com/113052102/347621805-db0ee3e4-9a54-42e7-a4fc-e46f07ab83f8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2Nzg0NTcsIm5iZiI6MTczOTY3ODE1NywicGF0aCI6Ii8xMTMwNTIxMDIvMzQ3NjIxODA1LWRiMGVlM2U0LTlhNTQtNDJlNy1hNGZjLWU0NmYwN2FiODNmOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwMzU1NTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZThjOTVkMTAwNmM3YzQ3ZDE4MTE0NjRmMTRkZGZkNjFmNDU1OTk1NmY5NzRjZDczNGE1NmVhOWU2ZjM5MzM1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.3gN2mOBc7xra35wE369d1u1IW2iN6RZmIq5bbxcPo40)
If the emulator and input file are in the current working directory, run:
python3 taxsim_emulator.py taxsim_input.raw
- taxsimid
- year
- state
- mstat (only 1 (single) and 2 (joint) filing options work)
- page (age of primary taxpayer)
- sage (age of spouse)
- depx (number of dependents)
- age1 (age of first dependent)
- age2 (age of second dependent)
- age3 (age of third dependent)
- pwages (wage of primary taxpayer)
- swages (wage of spouse)
- psemp (self-employment income of primary taxpayer)
- ssemp (self-employment income of spouse)
- dividends (dividend income)
- intrec (taxable interest received)
- stcg (short-term capital gains)
- ltcg (long-term capital gains)
- pui (primary taxpayer unemployment compensation received)
- sui (spouse unemployment compensation received)
- proptax (real estate taxes paid)