policyengine-us
policyengine-us copied to clipboard
Massachusetts Emergency Aid to the Elderly, Disabled and Children (EAEDC)
Fixes #1712
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.09%. Comparing base (
b1e324b) to head (8976043). Report is 23 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #4870 +/- ##
========================================
Coverage 99.09% 99.09%
========================================
Files 2746 2768 +22
Lines 39697 39999 +302
Branches 176 177 +1
========================================
+ Hits 39336 39638 +302
Misses 327 327
Partials 34 34
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Can we complete this given its importance to MyFriendBen, or should we start with a new PR?
Per our chat just now, please align the disabled earned income test logic closer to the regs (don't set income to zero for non-disabled). We also need to populate the household type enum though could be in a separate PR.
Here is what I did in the last commit:
- Restructured eligibility logic - created ma_eaedc_disabled_dependent_criteria_met variable
- Renamed ma_eaedc_disabled_eligible to ma_eaedc_head_is_disabled for clarity
- Refactored income calculation by extracting logic into separate ma_eaedc_earned_net_income variable
- Fixed vectorization in test files to return arrays instead of scalars
- Added new test cases to cover the updated functionality
Looks like we're adding the dependent care deduction already but just adding some info from @jsuperkaMFB:
I’m following up on the question about whether EAEDC applicants can deduct child care expenses in determining eligibility. Pavel, you had pointed out that the regs were recently updated, which I found (EAEDC was under 106 CMR 320, now it’s combined with TAFDC under 704). According to 106 CMR 704.500: Calculation of Grant Amount (and the DTA website), when calculating eligibility for EAEDC, child care expenses are an allowable deduction. As you noted, there is a provision in 106 CMR 704.275(B) that states that an EAEDC applicant who meets the provisions of 106 CMR 704.285(C) is not eligible for the dependent care deduction. But there is no subsection C in 704.285. I reached out to one of our contacts in MA to ask about this missing provision, but it looks to me that the child care deduction is allowed.
@PavelMakarchuk and I just discussed making this monthly
Changed to monthly - reflects the code better now