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

Add comments for NY form IT-213 #4451

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Shinuing
Copy link
Collaborator

try to fix #4427

@Shinuing
Copy link
Collaborator Author

Some concerns @PavelMakarchuk

  1. we mixed "children qualify for federal ctc" and "children qualify for federal ctc with age limit" and calculated together. It should be separate out based on the form Line 9-12
  2. not sure if we have modelled line6-10 (worksheet A-C), cannot tell from the simulation

image

@PavelMakarchuk
Copy link
Collaborator

@Shinuing thank you for looking into this, can we refactor the current code? I know it seems fairly complex but I believe we have missed a portion of the Worksheets

@Shinuing
Copy link
Collaborator Author

thank you for looking into this, can we refactor the current code? I know it seems fairly complex but I believe we have missed a portion of the Worksheets

I can model the worksheet (I don't think we model it at all).
But 1. do I need to model every line of every worksheet? If so, what about those variables we don't have?
2. can I redo the ctc calculations after modeling the worksheets? I don't quite understand some of the lines in the current code, so refactoring may not be a good option.

]
# Line 6
federal_round_amount = max_(
math.ceil(total - federal_threshold / p.amount.base)
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 separate this into multiple steps for clarity?

return where(
multi_children_family,
min_(adjusted_amount, adjusted_multi_children_amount),
min_(adjusted_amount, adjusted_earned_income_match),
Copy link
Collaborator

Choose a reason for hiding this comment

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

make the min statements its own vars in this formula

period: year
label: NY CTC additional tax credit children amount
reference:
- title: Instructions for Form IT-213 Claim for Empire State Child Credit
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you add 2021, 2022 , and 2023 tax forms as well as the legal code here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

could you add 2021, 2022 , and 2023 tax forms as well as the legal code here?

cannot find any limit in the legal code

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also, starting from 2023, no more min age limitation. And no worksheet B anymore. in this case we may need to create new calculations, please advice

"education_tax_credits",
# d Form 1040, Schedule 3, line 4, Retirement savings contributions credit
"savers_credit",
# e Form 1040, Schedule 3, line 6l, Total increase/decrease to reporting year tax
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@PavelMakarchuk do we have any variables here?

foreign_tax_credit_eligible = (
tax_unit("foreign_tax_credit", period) > 0
)
# line11_amount = where(foreign_tax_credit_eligible, selected_credit_amount, )
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@PavelMakarchuk do we need to include all info here https://www.tax.ny.gov/pdf/2021/inc/it213i_2021.pdf#page=4

line 11 for worksheet b

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

same for worksheet C 4a

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.

Two questions about New York CTC calculations
2 participants