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

DC "Give SNAP A Raise" program #4226

Merged
merged 22 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- DC "Give SNAP A Raise" program.
10 changes: 10 additions & 0 deletions policyengine_us/parameters/gov/states/dc/snap/max_months.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: DC provides a temporary local SNAP benefit amount for this number of months.
values:
2024-01-01: 9
metadata:
label: DC temporary local SNAP benefit rate
unit: months
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
period: year
reference:
- title: Supplemental Nutrition Assistance Progran (SNAP) raise in District of Columbia in 2024.
href: https://dhs.dc.gov/page/give-snap-raise-heres-what-expect
11 changes: 11 additions & 0 deletions policyengine_us/parameters/gov/states/dc/snap/rate.yaml
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: DC provides a temporary local SNAP increase by this percentage of the maximum allotment.
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
values:
2024-10-01: 0.1
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
2024-11-01: 0
metadata:
period: year
unit: /1
label: DC temporary local SNAP benefit rate
reference:
- title: Supplemental Nutrition Assistance Program (SNAP) raise in District of Columbia in 2024.
href: https://dhs.dc.gov/page/give-snap-raise-heres-what-expect
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- name: Household size 4, State DC
period: 2024
input:
spm_unit_size: 4
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
snap_region_str: CONTIGUOUS_US
output:
dc_snap_temporary_local_benefit: 24.325 # 973 * 0.1 * 3 / 12 = 24.325
21 changes: 21 additions & 0 deletions policyengine_us/tests/policy/baseline/gov/usda/snap/snap.yaml
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,24 @@
2022-12: 0
output:
snap: 3

- name: Total SNAP sums normal and emergency allotments in 2024 with DC temporary local benefit.
period: 2024
input:
snap_normal_allotment: 1
snap_emergency_allotment:
2024-01: 2
2024-02: 0
2024-03: 0
2024-04: 0
2024-05: 0
2024-06: 0
2024-07: 0
2024-08: 0
2024-09: 0
2024-10: 0
2024-11: 0
2024-12: 0
dc_snap_temporary_local_benefit: 3
output:
snap: 6
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from policyengine_us.model_api import *


class dc_snap_temporary_local_benefit(Variable):
value_type = float
entity = SPMUnit
definition_period = MONTH
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
documentation = "DC temporary SNAP benefit amount"
label = "DC temporary local SNAP benefit amount"
reference = "https://dhs.dc.gov/page/give-snap-raise-heres-what-expect"
unit = USD
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
defined_for = StateCode.DC

def formula(spm_unit, period, parameters):
p = parameters(period).gov.states.dc.snap

max_allotments = parameters(period).gov.usda.snap.max_allotment

snap_region = spm_unit.household("snap_region_str", period)
household_size = spm_unit("spm_unit_size", period).astype(str)
laviniawo marked this conversation as resolved.
Show resolved Hide resolved

applicable_months = min_(MONTHS_IN_YEAR, p.max_months)

dc_local_allotment = (
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
max_allotments.main[snap_region][household_size]
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
* p.rate
* applicable_months
)

dc_monthly_local_allotment = dc_local_allotment / MONTHS_IN_YEAR

return dc_monthly_local_allotment
6 changes: 5 additions & 1 deletion policyengine_us/variables/gov/usda/snap/snap.py
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ def formula(spm_unit, period, parameters):
return add(
spm_unit,
period,
["snap_normal_allotment", "snap_emergency_allotment"],
[
"snap_normal_allotment",
"snap_emergency_allotment",
"dc_snap_temporary_local_benefit",
],
)
Loading