Skip to content
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

Fix NIIT calculations #874

Merged
merged 4 commits into from
Aug 26, 2016
Merged

Fix NIIT calculations #874

merged 4 commits into from
Aug 26, 2016

Conversation

martinholmer
Copy link
Collaborator

This pull request make some slight changes in the calculation of the Net Investment Income Tax (NIIT), which was introduced beginning in 2013. These changes have tiny effects on Tax-Calculator results. For example, the aggregate income tax liability over the 2013-2022 period declines each year by an amount that ranges from $0.1 to $0.3 billion, which is at most only about 0.02 percent of tax liability.

The most pervasive changes are in the Internet-TAXSIM validation results, which are now off a little bit because it would seem that Internet-TAXSIM contains the same bugs as are fixed in this pull request.

This pull request resolves issue #873, which contains a more extensive discussion of the code changes in this pull request.

@MattHJensen @feenberg @Amy-Xu @GoFroggyRun @zrisher @codykallen

@codecov-io
Copy link

codecov-io commented Aug 24, 2016

Current coverage is 98.12% (diff: 100%)

Merging #874 into master will not change coverage

@@             master       #874   diff @@
==========================================
  Files            13         13          
  Lines          1818       1818          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           1784       1784          
  Misses           34         34          
  Partials          0          0          

Powered by Codecov. Last update 094d7ef...17da28f

@feenberg
Copy link
Contributor

We will fix Internet Taxsim this afternoon.

dan

On Wed, 24 Aug 2016, Martin Holmer wrote:

This pull request make some slight changes in the calculation of the Net Investment
Income Tax (NIIT), which was introduced beginning in 2013. These changes have tiny
effects on Tax-Calculator results. For example, the aggregate income tax liability
over the 2013-2022 period declines each year by an amount that ranges from $0.1 to
$0.3 billion, which is at most only about 0.02 percent of tax liability.

The most pervasive changes are in the Internet-TAXSIM validation results, which are
now off a little bit because it would seem that Internet-TAXSIM contains the same bugs
as are fixed in this pull request.

This pull request resolves issue #873, which contains a more extensive discussion of
the code changes in this pull request.

@MattHJensen @feenberg @Amy-Xu @GoFroggyRun @zrisher @codykallen


You can view, comment on, or merge this pull request online at:

  #874

Commit Summary
  • Rename function that calculates NIIT; fix modAGI.
  • Eliminate negative NII values in NetInvIncTax function.
  • Fix NIIT calculation logic; save small results differences.

File Changes

  • M taxcalc/calculate.py (2)
  • M taxcalc/comparison/reform_results.txt (2)
  • M taxcalc/functions.py (13)
  • M taxcalc/tests/pufcsv_agg_expect.txt (4)
  • M taxcalc/tests/pufcsv_mtr_expect.txt (22)
  • M taxcalc/validation/c13-reform-18_0.07.taxdiffs (3)
  • M taxcalc/validation/c13-reform-19_0.05.taxdiffs (3)
  • M taxcalc/validation/c13-reform-50_1.taxdiffs (3)
  • M taxcalc/validation/c13-reform-75_500.taxdiffs (3)
  • M taxcalc/validation/c13.taxdiffs (7)
  • M taxcalc/validation/c14-reform-18_0.07.taxdiffs (3)
  • M taxcalc/validation/c14-reform-19_0.05.taxdiffs (3)
  • M taxcalc/validation/c14-reform-50_1.taxdiffs (3)
  • M taxcalc/validation/c14-reform-75_500.taxdiffs (3)
  • M taxcalc/validation/c14.taxdiffs (7)
  • M taxcalc/validation/c15.taxdiffs (13)
  • M taxcalc/validation/d13.taxdiffs (7)
  • M taxcalc/validation/d14.taxdiffs (7)
  • M taxcalc/validation/d15.taxdiffs (13)

Patch Links:


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the
thread.[AHvQVYatNZwBiMX3uGVk3H0FhRq4xL-Rks5qjHEtgaJpZM4JsMzv.gif]

@martinholmer
Copy link
Collaborator Author

Dan @feenberg said:

We will fix Internet TAXSIM this afternoon.

Thanks, Dan, for the speedy response.
Please notify when fixed, so I can redo the validation tests.

@feenberg
Copy link
Contributor

On Wed, 24 Aug 2016, Martin Holmer wrote:

Dan @feenberg said:

  We will fix Internet TAXSIM this afternoon.

Thanks, Dan, for the speedy response.
Please notify when fixed, so I can redo the validation tests.

Ready now. Please report success/failure.

thanks for pointing this out.

dan


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the
thread.[AHvQVSY7Ej0krH9mu2LiO8flCtKi_0KFks5qjIQJgaJpZM4JsMzv.gif]

@martinholmer martinholmer merged commit 5d4d9b7 into PSLmodels:master Aug 26, 2016
@martinholmer martinholmer deleted the fix-niit-bugs branch August 26, 2016 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants