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

Fix New Mexico Low Income Comprehensive Tax Rebate calculations #4346

Merged
merged 7 commits into from
Apr 8, 2024

Conversation

xianxinzhu
Copy link
Collaborator

Fixes #4319

Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.17%. Comparing base (63e0693) to head (31a83ef).

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

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4346   +/-   ##
=======================================
  Coverage   99.17%   99.17%           
=======================================
  Files        2408     2408           
  Lines       34854    34854           
  Branches      163      163           
=======================================
  Hits        34565    34565           
  Misses        259      259           
  Partials       30       30           

☔ 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 April 5, 2024 14:26
@PavelMakarchuk PavelMakarchuk requested review from MaxGhenis and removed request for MaxGhenis April 5, 2024 14:28
@MaxGhenis
Copy link
Contributor

Can you describe the issue this is addressing? I don't see why we'd have to deviate from the law by adding a dollar to the thresholds.

@martinholmer
Copy link
Collaborator

@MaxGhenis said:

Can you describe the issue this is addressing? I don't see why we'd have to deviate from the law by adding a dollar to the thresholds.

Agreed. You are just undoing what was done in PR #4300 rather than figuring out the source of the problem in issue #4319.

@PavelMakarchuk
Copy link
Collaborator

I see what happened, the right=True function also applies to the first threshold value which in this case is 0. In rhis case, if AGI is 0, it seems to fall outside the range of the brackets and is returned as 0.
To overcome this we can set the first threshold value to "-1" for all yaml files

@PavelMakarchuk PavelMakarchuk requested a review from MaxGhenis April 5, 2024 21:04
@MaxGhenis
Copy link
Contributor

if it's single_amount the left endpoint should be -.inf

@martinholmer
Copy link
Collaborator

@MaxGhenis said in PR #4346:

if it's single_amount the left endpoint should be -.inf

I agree. I don't see why a filer with NM AGI of -$100 would be ineligible for the rebate.

@PavelMakarchuk
Copy link
Collaborator

@MaxGhenis makes sense, adjusted.

@MaxGhenis MaxGhenis merged commit 44671d2 into PolicyEngine:master Apr 8, 2024
4 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.

Fix New Mexico Low Income Comprehensive Tax Rebate calculations
4 participants