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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDg0NTIsIm5iZiI6MTczOTE0ODE1MiwicGF0aCI6Ii8xMTMwNTIxMDIvMzQ3NjIxODA1LWRiMGVlM2U0LTlhNTQtNDJlNy1hNGZjLWU0NmYwN2FiODNmOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwMDQyMzJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kMTNhMWQ5ZGRlODMwY2RkOWY3ZGVkZmNiNWI2ZTA4OTE3OTkzYWViNjhkMDYzNzJkY2FlMzhiZGU4YjdiNDg3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Ye__ZN_MV9tBG1cdVeLmN66CPS184Y4ea1mCV5So67E)
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)