-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace StageIFactors.csv with growfactors.csv and simplify logic #1178
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1178 +/- ##
==========================================
- Coverage 98.88% 98.87% -0.02%
==========================================
Files 38 38
Lines 3063 3023 -40
==========================================
- Hits 3029 2989 -40
Misses 34 34
Continue to review full report at Codecov.
|
@martinholmer, why does this change influence results? |
@martinholmer said:
Then @MattHJensen asked:
First, the results changes are very small: one-fourth of one-tenth of a percent is tiny. I created an alternative version of the factor CSV file in which the factors have nine decimal digits of precision. That file is bigger: 3913 bytes rather than 3017 bytes when factors have six decimal digits of precision. But the extra precision has no effect on income tax or payroll tax liability (because they are rounded to the nearest one-tenth of a billion dollars). The extra precision does cause changes in some intermediate income tax results. For example, the AMT liability in 2022 is $57.8 billion, which is the same as on master and down from $57.9 billion in this pull request. Another example: adding three extra decimal points of precision causes taxable income to rise by $0.2 billion, which is a change of one-fifth of one-tenth of a percent. Does that information answer your question? |
Yes, thanks a lot. +1 on the change. |
@MattHJensen, @andersonfrailey and I are working together on some changes to the taxdata repo that we want to put in place before we commit pull request #1178. |
@martinholmer said:
We have made enough progress in that taxdata work to make it sensible to merge #1178 now. |
This pull request simplifies Tax-Calculator logic by moving data-preparation work from Tax-Calculator code (where is executes every time Tax-Calculator is run) to the taxdata code (where it is executed just once). The forthcoming change in taxdata logic is described in taxdata issue 60. The desirability of moving this data-preparation code into the taxdata repo (where it logically belongs) was identified in issue #1175.
These changes cause minor differences in some tax results (even with the new
grow_factors.csv
file containing rates that are expressed with six decimal places of precision). For example, in 2022 income taxes are now $2033.2 billion, which is up from $2032.7 billion, a rise of $0.5 billion, which is an increase of about one-fourth of one-tenth of a percent. There is no change in the payroll tax total for any year in the 2013-2022 period.@MattHJensen @feenberg @Amy-Xu @andersonfrailey @GoFroggyRun @codykallen