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

better mapping of Child and Dependent Care Expenses Credit #2710

Merged
merged 5 commits into from
Feb 12, 2024

Conversation

bodiyang
Copy link
Contributor

Change of the mapping of the variable Child and Dependent Care Expenses Credit, to TAXSIM35.

c07180 and CDCC_refund mapping value will be changed correspondingly

@bodiyang bodiyang mentioned this pull request Jan 30, 2024
5 tasks
@jdebacker
Copy link
Member

@bodiyang Thanks for looking at this. Can you give some more context to what you are doing in this PR so we have it for the record? Thanks!

@bodiyang
Copy link
Contributor Author

bodiyang commented Feb 5, 2024

There are two issues solved in this PR
(1)c07180 takes the f2441 as number of qualified child under 13, as in calcfunctions.py

When mapping from TAXSIM to Tax-Calc, we only used to have dep13 -> nu13, but no mapping for f2331, that's why c07180 was zero out in Tax-Calc.

After adding the mapping of f2441, Tax-Calc is able to produce the correct c07180 result.

(2)Child and Dependent Care Credit is refundable for 2021, not refundable for the rest years. c07180 is the non-refundable CDCC, so is zero in 2021. In order to compare the CDCC amount in 2021 with TAXSIM, we need to map c07180 t0 CDCC_refund in 2021

@feenberg
Copy link
Contributor

feenberg commented Feb 5, 2024 via email

@bodiyang
Copy link
Contributor Author

bodiyang commented Feb 5, 2024

Perhaps you should shift to using the dependent age variables in taxsim35 (age1,age2, age3) which lets taxsim calculate the number of eligible children. Daniel Feenberg

On Mon, 5 Feb 2024, Bodi Yang wrote: There are two issues solved in this PR (1)c07180 takes the f2441 as number of qualified child under 13, as in calcfunctions.py When mapping from TAXSIM to Tax-Calc, we only used to have dep13 -> nu13, but no mapping for f2331, that's why c07180 was zero out in Tax-Calc. After adding the mapping of f2441, Tax-Calc is able to produce the correct c07180 result. (2)Child and Dependent Care Credit is refundable for 2021, not refundable for the rest years. c07180 is the non-refundable CDCC, so is zero in 2021. In order to compare the CDCC amount in 2021 with TAXSIM, we need to map c07180 t0 CDCC_refund in 2021 -- Reply to this email directly or view it on GitHub: #2710 (comment) You are receiving this because you are subscribed to this thread. Message ID: @.***>

Thanks for the note Daniel. This PS's issue is a fix on the Tax-Calculator side.

~ I have already mapped the TAXSIM age variables (age1,age2, age3) to Tax-Calc age variables

Copy link

codecov bot commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (43f8313) 98.54% compared to head (e4970fc) 98.54%.
Report is 1 commits behind head on master.

❗ Current head e4970fc differs from pull request most recent head 0521507. Consider uploading reports for the commit 0521507 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2710   +/-   ##
=======================================
  Coverage   98.54%   98.54%           
=======================================
  Files          14       14           
  Lines        2616     2616           
=======================================
  Hits         2578     2578           
  Misses         38       38           
Flag Coverage Δ
unittests 98.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@jdebacker jdebacker self-requested a review February 12, 2024 20:40
@jdebacker
Copy link
Member

@bodiyang I think this is a nice mapping to make for comparisons to TAXSIM. Thank you for the PR!

@jdebacker jdebacker merged commit 7610289 into PSLmodels:master Feb 12, 2024
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.

3 participants