- This is a simple CLI tool for calculating state income tax in all 50 states at once for a given taxable income.
- To run the program, either build it beforehand and call the executable, or simply run:
go run taxify.go -income=xxxxxx - Results are returned in descending order by default, though this can be reversed by invoking the flag
-ascending=true - In addition to the report that will automatically print to the terminal, you can specify other command line arguments to shape the output:
-plot=truewill run the plot with default values-top=x(default value is7) will plot only the top x number of states.tophere depends on the value for the flag-ascending, which defaults tofalse.-ascending=truewill rank the states from lowest to highest total income tax for the given income.-numSteps=xis less important, and specifies the number of discrete calculations to be made between $0 andincometo use when plotting. A higher value will lead to a smoother and more accurate plot, but there's diminishing returns. The default is 100, which works quite well. An example plot:
m12t/taxify
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
