Skip to content

Conversation

@PavelMakarchuk
Copy link
Collaborator

Fixes #4775

@PavelMakarchuk PavelMakarchuk marked this pull request as ready for review July 31, 2024 00:51
Comment on lines 122 to 125
tax_unit("capital_gains_tax", period)
tax_before_credits = (
regular_tax_before_credits + regular_tax_before_credits
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the piece that was added in this PR

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why regular_tax_before_credits is being added to itself?
What am I missing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this resolved?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@martinholmer
Copy link
Collaborator

@PavelMakarchuk, in PR #4815 the new code looks like this:

Screenshot 2024-07-31 at 10 34 52 AM

I don't understand line 122: the capital_gains_tax is not being assigned to a local variable.
What's the purpose of line 122?

And on line 124, I don't understand the point of adding regular_tax_before_credits to itself?

Should the new code be something like this?

        tax_before_credits = (
            regular_tax_before_credits + tax_unit("capital_gains_tax", period)
        )

@PavelMakarchuk
Copy link
Collaborator Author

@PavelMakarchuk, in PR #4815 the new code looks like this:

Screenshot 2024-07-31 at 10 34 52 AM I don't understand line 122: the capital_gains_tax is not being assigned to a local variable. What's the purpose of line 122?

And on line 124, I don't understand the point of adding regular_tax_before_credits to itself?

Should the new code be something like this?

        tax_before_credits = (
            regular_tax_before_credits + tax_unit("capital_gains_tax", period)
        )

Yes, my mistake, that was exactly the intention

@martinholmer
Copy link
Collaborator

@PavelMakarchuk, There seems to be a problem with building the documentation.
What's that all about?

@PavelMakarchuk
Copy link
Collaborator Author

PavelMakarchuk commented Aug 7, 2024

@PavelMakarchuk, There seems to be a problem with building the documentation. What's that all about?

The CI issue is affecting every Pull Request right now - we have an issue filed for it but it has not been fixed yet

@codecov
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.00%. Comparing base (daf7988) to head (a21be3e).
Report is 76 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4815      +/-   ##
==========================================
+ Coverage   98.98%   99.00%   +0.01%     
==========================================
  Files        2517     2532      +15     
  Lines       36615    36801     +186     
  Branches      197      152      -45     
==========================================
+ Hits        36245    36435     +190     
+ Misses        339      337       -2     
+ Partials       31       29       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MaxGhenis MaxGhenis changed the title Refactor the alternative minimum tax files Fix and refactor AMT Aug 9, 2024
@MaxGhenis
Copy link
Contributor

Seems like we're hitting some sort of resource limit on the GH Actions servers, around the microsim tests. I don't think this PR is adding significant resource use, but it could be a tipping point.

Some options I see include:

  1. Trim down the microsim tests
  2. Improve efficiency, e.g. using more defined_fors or caching
  3. Break up the test suite (not sure how resource constraints are handled / if this would help)
  4. Pay for larger runners

@nikhilwoodruff any other options you'd see?

@PavelMakarchuk
Copy link
Collaborator Author

Seems like we're hitting some sort of resource limit on the GH Actions servers, around the microsim tests. I don't think this PR is adding significant resource use, but it could be a tipping point.

Some options I see include:

  1. Trim down the microsim tests
  2. Improve efficiency, e.g. using more defined_fors or caching
  3. Break up the test suite (not sure how resource constraints are handled / if this would help)
  4. Pay for larger runners

@nikhilwoodruff any other options you'd see?

I can remove Microsim tests (mostly not entirely) if we agree that this is the solution that we are going for

@MaxGhenis
Copy link
Contributor

Sure, try removing one or two to start?

Does make test work for you locally?

@PavelMakarchuk
Copy link
Collaborator Author

Seems like we're hitting some sort of resource limit on the GH Actions servers, around the microsim tests. I don't think this PR is adding significant resource use, but it could be a tipping point.
Some options I see include:

  1. Trim down the microsim tests
  2. Improve efficiency, e.g. using more defined_fors or caching
  3. Break up the test suite (not sure how resource constraints are handled / if this would help)
  4. Pay for larger runners

@nikhilwoodruff any other options you'd see?

I can remove Microsim tests (mostly not entirely) if we agree that this is the solution that we are going for

I would also think the reducing the test suite for structural reforms could help

@PavelMakarchuk
Copy link
Collaborator Author

Sure, try removing one or two to start?

Does make test work for you locally?

The make test passes locally

@MaxGhenis MaxGhenis merged commit 8a488fe into master Aug 10, 2024
@MaxGhenis MaxGhenis deleted the PavelMakarchuk/issue4775 branch August 10, 2024 11:09
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.

Fix erroneous federal AMT calculation

4 participants