policyengine-us icon indicating copy to clipboard operation
policyengine-us copied to clipboard

Massachusetts Emergency Aid to the Elderly, Disabled and Children (EAEDC)

Open hua7450 opened this issue 1 year ago • 1 comments

Fixes #1712

hua7450 avatar Aug 14 '24 05:08 hua7450

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.

codecov[bot] avatar Aug 25 '24 03:08 codecov[bot]

Can we complete this given its importance to MyFriendBen, or should we start with a new PR?

MaxGhenis avatar Jan 13 '25 02:01 MaxGhenis

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.

MaxGhenis avatar Mar 03 '25 17:03 MaxGhenis

Here is what I did in the last commit:

  1. Restructured eligibility logic - created ma_eaedc_disabled_dependent_criteria_met variable
  2. Renamed ma_eaedc_disabled_eligible to ma_eaedc_head_is_disabled for clarity
  3. Refactored income calculation by extracting logic into separate ma_eaedc_earned_net_income variable
  4. Fixed vectorization in test files to return arrays instead of scalars
  5. Added new test cases to cover the updated functionality

hua7450 avatar Mar 06 '25 17:03 hua7450

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.

MaxGhenis avatar Mar 20 '25 17:03 MaxGhenis

@PavelMakarchuk and I just discussed making this monthly

Changed to monthly - reflects the code better now

PavelMakarchuk avatar Mar 28 '25 18:03 PavelMakarchuk