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

Decouple California CDCC calculation from ARPA in 2021 #3224

Merged
merged 15 commits into from
Nov 15, 2023

Conversation

LeqiGogo
Copy link
Contributor

@LeqiGogo LeqiGogo commented Nov 3, 2023

Fixes #2060

🤖 Generated by Copilot at f60001c

Summary

👶💰📆

This pull request adds the ca_federal_cdcc variable and its components, which compute the California Child and Dependent Care Expenses Credit for tax units. It also adds test cases for the new variables in the policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/credits folder. This credit is part of the California state income tax system.

ca_cdcc credit
New variables and tests
Fall leaves bring relief

Walkthrough

  • Add ca_cdcc_rate variable to calculate the California Child and Dependent Care Expenses Credit rate based on AGI (link)
  • Add test cases for ca_cdcc_rate with different AGI levels in 2019 and 2021 (policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/credits/ca_cdcc_rate.yaml, link)
  • Add ca_cdcc_relevant_expenses variable to calculate the relevant care expenses for the California CDCC credit (link)
    • Add test cases for ca_cdcc_relevant_expenses with different childcare expenses, number of care receivers, and minimum earnings in 2019 and 2021 (policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/credits/ca_cdcc_relevant_expenses.yaml, link)
  • Add ca_federal_cdcc variable to calculate the amount of the California CDCC credit by multiplying the relevant expenses by the rate (link)

Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (631134a) 99.02% compared to head (1fb5dac) 99.02%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3224   +/-   ##
=======================================
  Coverage   99.02%   99.02%           
=======================================
  Files        1835     1839    +4     
  Lines       27028    27100   +72     
  Branches      158      160    +2     
=======================================
+ Hits        26765    26837   +72     
  Misses        225      225           
  Partials       38       38           

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

@PavelMakarchuk PavelMakarchuk marked this pull request as ready for review November 15, 2023 18:11
@MaxGhenis MaxGhenis merged commit 5bb6097 into PolicyEngine:master Nov 15, 2023
6 checks passed
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.

Decouple California CDCC calculation from ARPA in 2021
3 participants