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

snap_standard_deduction does not calculate year value correctly.

Open CalebPena opened this issue 1 year ago • 4 comments

The following test passes:

- name: Month
  period: 2024-1
  input:
    state_group: CONTIGUOUS_US
  output:
    snap_standard_deduction: 198

But this one fails:

- name: Year
  period: 2024
  input:
    state_group: CONTIGUOUS_US
  output:
    snap_standard_deduction: 2_376 # 198 * 12

CalebPena avatar May 08 '24 19:05 CalebPena

I am pretty sure that this has to do with uprating, because when I remove it both tests pass.

CalebPena avatar May 08 '24 19:05 CalebPena

Yes, we project the standard deduction increase scheduled for October.

MaxGhenis avatar May 08 '24 19:05 MaxGhenis

Okay, that makes sense, but I get an error when I try:

- name: Month
  period: 2024-10
  input:
    state_group: CONTIGUOUS_US
  output:
    snap_standard_deduction: 198

CalebPena avatar May 08 '24 20:05 CalebPena

It changes in October 2024, so that value is expected

https://policyengine.org/us/policy?focus=gov.usda.snap.income.deductions.standard.CONTIGUOUS_US.1

image

MaxGhenis avatar May 09 '24 02:05 MaxGhenis

I think we're capturing this correctly but please reopen if you see an issue.

MaxGhenis avatar May 26 '24 00:05 MaxGhenis