Open martinholmer opened 2 years ago
Given that this pre-2021 LLC phase-out bug has no effect beginning in 2021 and given that few datasets include information on qualified tuition expenses that are not eligible for the American Opportunity Credit, it seems like the cost of correcting this bug is larger than the benefit of correcting the bug. Given those considerations, I'm closing this issue.
Thanks Martin, I agree this is low-priority, though I'd prefer we keep uncompleted issues open and as we identify a project management system we'll push prioritization there. We've used ZenHub in the past (where we assigned some issues to the "Icebox") and we're starting to try the new GitHub Projects; @ibushong also recently recommended Linear.
Before 2021, the AGI phase-out parameters for the Lifetime Learning Credit (calculated in Part II of IRS Form 8863) differed from the AGI phase-out parameters for the American Opportunity Credit (calculated in Part I of IRS Form 8863). In 2021, these two sets of phase-out parameters were the same, and that is how OpenFisca-US 0.136.0 version has it for all years. Because the LLC phase-out begins at lower AGI than the AOC phase-out begin in years before 2021, the current code in OpenFisca-US sometimes assigns a positive LLC amount to a tax unit that in reality has AGI too large to receive a LLC.
The parameter differences in years before 2021 can be read straight off each Form 8863, links to which are provided on this IRS webpage.
The following 2020 test case illustrates this problem. First, the YAML test file, then the test results, and finally excerpts from the OpenFisca-US test trace and the USI-Tax-Analyzer dump output. The expected income tax in the test is derived from the USI-Tax-Analyzer because TAXSIM35 does not simulate education credits.
Here is the test file:
Here are the test results:
Here are some excerpts from the OpenFisca-US test trace:
And here are some excerpts from the USI-Tax-Analyzer dump output:
So, the $800 income tax difference is caused by the fact that USI-Tax-Analyzer is using the AGI phase-out parameters specified by IRS on the 2020 Form 8863 while OpenFisca-US is neglecting to do this in 2020 and years before 2020.