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 14 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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: DC provides a temporary local SNAP benefit of this percentage of the maximum allotment.
values:
2024-01-01: 0.1
# The temporary allotment expried in October 2024
MaxGhenis marked this conversation as resolved.
Show resolved Hide resolved
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
2024-10-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,29 @@
- name: Household size 1, State DC
period: 2024-01
input:
spm_unit_size: 1
state_code: DC
snap_region_str: CONTIGUOUS_US
output:
# 291 * 0.1 = 29.1
dc_snap_temporary_local_benefit: 29.1

- name: Household size 4, State DC
period: 2024-01
input:
spm_unit_size: 4
state_code: DC
snap_region_str: CONTIGUOUS_US
output:
# 973 * 0.1 = 97.3
dc_snap_temporary_local_benefit: 97.3

- name: Household size 4, State DC, yearly
period: 2024
input:
spm_unit_size: 4
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
state_code: DC
snap_region_str: CONTIGUOUS_US
output:
# 973 * 0.1 = 97.3 * 9 = 875.7
dc_snap_temporary_local_benefit: 875.7
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
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
employment_income: 76_500
rent: 24_000
state_fips: 11 # DC
dc_snap_temporary_local_benefit: 0
output:
adjusted_gross_income: 76_500
dc_ptc: 1_225
Expand All @@ -54,6 +55,7 @@
employment_income: 76_500 + 1_000
rent: 24_000
state_fips: 11 # DC
dc_snap_temporary_local_benefit: 0
output:
adjusted_gross_income: 76_500 + 1_000
dc_ptc: 0
Expand Down Expand Up @@ -88,6 +90,7 @@
spm_units:
spm_unit:
members: [person1, person2]
dc_snap_temporary_local_benefit: 0
households:
household:
members: [person1, person2]
Expand All @@ -114,6 +117,7 @@
spm_units:
spm_unit:
members: [person1, person2]
dc_snap_temporary_local_benefit: 0
households:
household:
members: [person1, person2]
Expand Down
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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.usda.snap.temporary_local_benefit.dc

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)
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved

return max_allotments.main[snap_region][household_size] * p.rate
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