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

Split SSI couple amount for OAP #5276

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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: patch
changes:
fixed:
- Split SSI couple amount for OAP
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
co_oap_eligible: true
ssi_countable_income: 1_000
ssi: 0
ssi_marital_both_eligible: false
output:
co_oap: 10_424

Expand All @@ -13,6 +14,7 @@
co_oap_eligible: true
ssi_countable_income: 0
ssi: 2_000
ssi_marital_both_eligible: false
output:
co_oap: 9_424

Expand All @@ -22,5 +24,26 @@
co_oap_eligible: true
ssi_countable_income: 6_000
ssi: 6_000
ssi_marital_both_eligible: false
output:
co_oap: 0

- name: SSI both eligible
period: 2024
input:
people:
head:
co_oap_eligible: true
ssi_countable_income: 0
ssi: 12_000
ssi_marital_both_eligible: true
spouse:
co_oap_eligible: true
ssi_countable_income: 0
ssi: 0
ssi_marital_both_eligible: true
marital_units:
marital_unit:
members: [head, spouse]
output:
co_oap: [5_784, 5_784]
7 changes: 6 additions & 1 deletion policyengine_us/variables/gov/states/co/ssa/oap/co_oap.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ class co_oap(Variable):

def formula(person, period, parameters):
income = person("ssi_countable_income", period)
both_eligible = person("ssi_marital_both_eligible", period)
ssi = person("ssi", period)
total_countable_income = ssi + income
# The SSI variable assigns SSI to one member of the marital unit if both are eligible
marital_ssi = where(
both_eligible, person.marital_unit.sum(ssi) / 2, ssi
)
total_countable_income = marital_ssi + income
p = parameters(period).gov.states.co.ssa.oap
grant_standard = p.grant_standard * MONTHS_IN_YEAR
return max_(0, grant_standard - total_countable_income)