Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Corrected Alabama Family Assistance by rounding countable income to whole dollars and applying the $10 full-month minimum to both financial eligibility and grants.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Alabama pays regular monthly Family Assistance grants of at least this amount.
values:
1997-11-10: 10
metadata:
unit: currency-USD
period: month
label: Alabama TANF minimum payment
reference:
- title: Ala. Admin. Code r. 660-2-2-.10 - Amount of Assistance Payment
href: https://admincode.legislature.state.al.us/api/chapter/660-2-2#page=8
- title: Alabama DHR Public Assistance Payment Manual - Section 3116 Maximum and Minimum Payments
href: https://dhr.alabama.gov/wp-content/uploads/2022/04/Appendix-N-Sec-2-Public-Assistance-Payment-Manual.pdf#page=21
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Reference: Ala. Admin. Code r. 660-2-2 (Income r. .30, effective 05/15/2022;
# Payment Standard r. .31; Grant Computation r. .32)
# https://admincode.legislature.state.al.us/api/chapter/660-2-2
# Benefit = max(payment_standard - countable_income, 0)
# Subtract rounded countable income and apply the $10 minimum.
# Work expense deduction: the first 30% of gross earnings
# Payment standards: $264 (1), $304 (2), $344 (3), $392 (4), $440 (5), $488 (6), etc.

Expand Down Expand Up @@ -304,6 +304,168 @@
# Family of 2: payment standard = $304
# Monthly unearned income: $304 (no deductions on unearned)
# Countable income: $304
# $304 <= $304, eligible (tests <= boundary)
# Income equals the payment standard, so the unit is ineligible.
# Benefit: $304 - $304 = $0
al_tanf: 0

- name: Full-month grants at and below the $10 minimum
period: 2026-01
input:
people:
parent:
age: {2026: 30}
pension_income: {2026: 3_528}
child: &five_year_old
age: {2026: 5}
spm_units: &two_person_spm
unit:
members: [parent, child]
tax_units: &two_person_tax
unit:
members: [parent, child]
households: &two_person_household
household:
members: [parent, child]
state_code: {2026: AL}
axes:
- - name: pension_income
period: 2026
count: 2
min: 3_528
max: 3_540
output:
# Annual pensions / 12 = $294 and $295. $304 minus those amounts
# gives $10 and $9. The regular monthly minimum is $10.
al_tanf_countable_income: [294, 295]
al_tanf: [10, 0]

- name: Round the countable wage budget to whole dollars
period: 2026-01
absolute_error_margin: 0.01
input:
people:
parent:
age: {2026: 30}
employment_income_before_lsr: {2026: 1_212}
child: *five_year_old
spm_units: *two_person_spm
tax_units: *two_person_tax
households: *two_person_household
output:
# At an established job, $1,212 / 12 = $101. After the 30% work
# deduction, $70.70 rounds to $71. The grant is $304 - $71 = $233.
al_tanf_countable_earned_income: 70.70
al_tanf_countable_income: 70.70
al_tanf: 233

- name: Round to whole dollars before applying the minimum
period: 2026-01
absolute_error_margin: 0.001
input:
people:
parent:
age: {2026: 30}
pension_income: {2026: 3_533.88}
child: *five_year_old
spm_units: *two_person_spm
tax_units: *two_person_tax
households: *two_person_household
axes:
- - name: pension_income
period: 2026
count: 2
min: 3_533.88
max: 3_534
output:
# Annual pensions / 12 = $294.49 and $294.50. Round to $294
# and $295. $304 minus those amounts gives $10 and $9.
al_tanf_countable_income: [294.49, 294.50]
al_tanf: [10, 0]

- name: The full-month minimum is also a financial eligibility condition
period: 2026-01
input:
people:
parent:
age: {2026: 30}
pension_income: {2026: 3_528}
child: *five_year_old
spm_units: *two_person_spm
tax_units: *two_person_tax
households: *two_person_household
axes:
- - name: pension_income
period: 2026
count: 3
min: 3_528
max: 3_540
output:
# Monthly pensions of $294, $294.50, and $295 round to $294, $295, and $295.
# The $304 standard minus those amounts gives $10, $9, and $9.
# Only the first unit meets the $10 minimum for eligibility and payment.
al_tanf_countable_income: [294, 294.5, 295]
al_tanf: [10, 0, 0]
al_tanf_income_eligible: [true, false, false]
al_tanf_eligible: [true, false, false]

- name: Round pension income after adding it across assistance-unit members
period: 2026-01
input:
people:
parent:
age: {2026: 30}
pension_income: {2026: 423}
child:
age: {2026: 5}
pension_income: {2026: 423}
spm_units: *two_person_spm
tax_units: *two_person_tax
households: *two_person_household
output:
# Two pensions of $423 / 12 = $35.25 total $70.50, which rounds to $71.
# The grant is $304 - $71 = $233.
al_tanf_countable_income: 70.5
al_tanf: 233

- name: Negative countable income cannot raise the grant above the standard
period: 2026-01
input:
people:
parent:
age: {2026: 30}
child: *five_year_old
spm_units:
unit:
members: [parent, child]
al_tanf_countable_income: {2026-01: -1.5}
tax_units: *two_person_tax
households: *two_person_household
output:
# $304 - round(-$1.50) = $305, capped at $304, which meets the $10 minimum.
al_tanf_income_eligible: true
al_tanf_eligible: true
al_tanf: 304

- name: Round the grant budget from the June 1983 effective month
period: 1983-06
input:
state_code: {1983: AL}
al_tanf_payment_standard: {1983-05: 190, 1983-06: 190, 1983-07: 190}
al_tanf_countable_income: {1983-05: 70.5, 1983-06: 70.5, 1983-07: 70.5}
al_tanf_eligible: {1983-05: true, 1983-06: true, 1983-07: true}
output:
# With an assumed $190 standard, $190 - $70.50 = $119.50 before the rule.
# From June, $70.50 rounds to $71 and $190 - $71 = $119.
al_tanf: {1983-05: 119.5, 1983-06: 119, 1983-07: 119}

- name: Apply the payment floor in the November 1997 effective month
period: 1997-11
input:
state_code: {1997: AL}
al_tanf_payment_standard: {1997-10: 190, 1997-11: 190, 1997-12: 190}
al_tanf_countable_income: {1997-10: 181, 1997-11: 181, 1997-12: 181}
al_tanf_eligible: {1997-10: true, 1997-11: true, 1997-12: true}
output:
# With an assumed $190 standard, $190 - $181 = $9.
# From November, $9 is below the $10 minimum and the grant is $0.
al_tanf: {1997-10: 9, 1997-11: 0, 1997-12: 0}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Reference: Ala. Admin. Code r. 660-2-2 (Income r. .30, effective 05/15/2022;
# Payment Standard r. .31; Grant Computation r. .32)
# https://admincode.legislature.state.al.us/api/chapter/660-2-2
# Income eligible if countable income <= payment standard
# Financial eligibility requires a full-month grant of at least $10.
# Work expense deduction: the first 30% of gross earnings
# Payment standards: $264 (1 person), $304 (2), $344 (3), $392 (4), $440 (5)

Expand All @@ -25,7 +25,7 @@
output:
# Family of 2: payment standard = $304
# Countable income: $0
# $0 <= $304, eligible
# $0 < $304, eligible
al_tanf_income_eligible: true

- name: Case 2, income below payment standard - eligible.
Expand All @@ -49,10 +49,10 @@
# Work expense deduction (30%): $250 * 0.30 = $75
# Countable earned: $250 - $75 = $175
# Payment standard (2 persons): $304
# $175 <= $304, eligible
# $175 < $304, eligible
al_tanf_income_eligible: true

- name: Case 3, unearned income at payment standard - eligible.
- name: Case 3, unearned income at payment standard - ineligible.
period: 2024-01
input:
people:
Expand All @@ -72,8 +72,8 @@
# Monthly unearned income: $304 (no deductions on unearned)
# Countable income: $304
# Payment standard (2 persons): $304
# $304 <= $304, eligible (tests <= boundary)
al_tanf_income_eligible: true
# $304 equals the payment standard, so the income test fails.
al_tanf_income_eligible: false

- name: Case 4, income exceeds payment standard - ineligible.
period: 2024-01
Expand Down Expand Up @@ -122,7 +122,7 @@
# Work expense deduction (30%): $350 * 0.30 = $105
# Countable earned: $350 - $105 = $245
# Payment standard (3 persons): $344
# $245 <= $344, eligible
# $245 < $344, eligible
al_tanf_income_eligible: true

- name: Case 6, family of 4 with childcare expenses - eligible.
Expand Down Expand Up @@ -153,7 +153,7 @@
# Childcare deduction: $300
# Countable earned: max($350 - $300, 0) = $50
# Payment standard (4 persons): $392
# $50 <= $392, eligible
# $50 < $392, eligible
al_tanf_income_eligible: true

- name: Case 7, family of 5 with unearned income - ineligible.
Expand Down Expand Up @@ -209,7 +209,7 @@
# Work expense deduction (30%): $200 * 0.30 = $60
# Countable earned: $200 - $60 = $140
# Payment standard (1 person): $264
# $140 <= $264, eligible
# $140 < $264, eligible
al_tanf_income_eligible: true

# ============================================================================
Expand Down Expand Up @@ -238,3 +238,40 @@
# Countable income: $305
# $305 > $304, ineligible (tests > boundary, one dollar over)
al_tanf_income_eligible: false

- name: Pension income equal to the payment standard
period: 2026-01
input:
people:
parent:
age: {2026: 30}
pension_income: {2026: 3_648}
child:
age: {2026: 5}
spm_units:
unit:
members: [parent, child]
tax_units:
unit:
members: [parent, child]
households:
household:
members: [parent, child]
state_code: {2026: AL}
output:
# $3,648 / 12 = $304, which equals the two-person standard.
# The income test requires income below the standard.
al_tanf_countable_income: 304
al_tanf_income_eligible: false
al_tanf_eligible: false
al_tanf: 0

- name: The existing payment floor excludes income at the standard in November 2009
period: 2009-11
input:
state_code: {2009: AL}
al_tanf_payment_standard: {2009-10: 190, 2009-11: 190, 2009-12: 190}
al_tanf_countable_income: {2009-10: 190, 2009-11: 190, 2009-12: 190}
output:
# $190 - $190 = $0, below the $10 minimum in all three months.
al_tanf_income_eligible: {2009-10: false, 2009-11: false, 2009-12: false}
10 changes: 5 additions & 5 deletions policyengine_us/variables/gov/states/al/dhs/tanf/al_tanf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class al_tanf(Variable):
label = "Alabama TANF"
unit = USD
definition_period = MONTH
reference = "https://dhr.alabama.gov/wp-content/uploads/2023/10/DHR-FAD-595-Oct.23.pdf#page=2"
reference = (
"https://admincode.legislature.state.al.us/api/chapter/660-2-2#page=8",
"https://dhr.alabama.gov/wp-content/uploads/2022/04/Appendix-N-Sec-2-Public-Assistance-Payment-Manual.pdf#page=20",
)
defined_for = "al_tanf_eligible"

def formula(spm_unit, period, parameters):
payment_standard = spm_unit("al_tanf_payment_standard", period)
countable_income = spm_unit("al_tanf_countable_income", period)
benefit = max_(payment_standard - countable_income, 0)
return min_(benefit, payment_standard)
return spm_unit("al_tanf_full_month_grant", period)
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
from policyengine_us.model_api import *


class al_tanf_full_month_grant(Variable):
value_type = float
entity = SPMUnit
label = "Alabama TANF full-month grant before non-financial eligibility rules"
unit = USD
definition_period = MONTH
reference = (
"https://admincode.legislature.state.al.us/api/chapter/660-2-2#page=8",
"https://admincode.legislature.state.al.us/api/chapter/660-2-2#page=26",
"https://dhr.alabama.gov/wp-content/uploads/2022/04/Appendix-N-Sec-2-Public-Assistance-Payment-Manual.pdf#page=20",
)
defined_for = StateCode.AL

def formula(spm_unit, period, parameters):
payment_standard = spm_unit("al_tanf_payment_standard", period)
countable_income = spm_unit("al_tanf_countable_income", period)
return min_(max_(payment_standard - countable_income, 0), payment_standard)

# Use Rule .32 in the month of its June 28, 1983 effective date.
def formula_1983_06_01(spm_unit, period, parameters):
payment_standard = spm_unit("al_tanf_payment_standard", period)
countable_income = spm_unit("al_tanf_countable_income", period)
rounded_income = np.floor(countable_income + 0.5)
return min_(max_(payment_standard - rounded_income, 0), payment_standard)

# Use the minimum in the month of its November 10, 1997 effective date.
def formula_1997_11_01(spm_unit, period, parameters):
grant = al_tanf_full_month_grant.formula_1983_06_01(
spm_unit, period, parameters
)
minimum_payment = parameters(period.stop).gov.states.al.dhs.tanf.minimum_payment
return where(grant >= minimum_payment, grant, 0)
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ class al_tanf_income_eligible(Variable):
entity = SPMUnit
label = "Alabama TANF income eligibility"
definition_period = MONTH
reference = "https://dhr.alabama.gov/wp-content/uploads/2023/10/DHR-FAD-595-Oct.23.pdf#page=2"
reference = (
"https://admincode.legislature.state.al.us/api/chapter/660-2-2#page=23",
"https://dhr.alabama.gov/wp-content/uploads/2022/04/Appendix-N-Sec-2-Public-Assistance-Payment-Manual.pdf#page=20",
)
defined_for = StateCode.AL

def formula(spm_unit, period, parameters):
countable_income = spm_unit("al_tanf_countable_income", period)
payment_standard = spm_unit("al_tanf_payment_standard", period)
return countable_income <= payment_standard

def formula_1997_11_01(spm_unit, period, parameters):
return spm_unit("al_tanf_full_month_grant", period) > 0
Loading