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
1 change: 1 addition & 0 deletions changelog.d/ak-atap-earned-income-disregard-tiers.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Applied Alaska ATAP’s earned income disregard tiers using individual receipt and qualifying earnings history.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
description: Alaska excludes these shares of earnings remaining after the flat work incentive deduction based on the number of prior qualifying earnings months.

brackets:
- threshold:
2013-12-31: 12
amount:
2005-01-01: null
2013-12-31: 0.25
- threshold:
2013-12-31: 24
amount:
2005-01-01: null
2013-12-31: 0.20
- threshold:
2013-12-31: 36
amount:
2005-01-01: null
2013-12-31: 0.15
- threshold:
2013-12-31: 48
amount:
2005-01-01: null
2013-12-31: 0.10
- threshold:
2013-12-31: 60
amount:
2005-01-01: null
2013-12-31: 0

metadata:
type: single_amount
threshold_unit: month
amount_unit: /1
period: month
label: Alaska ATAP work incentive percentage rates after the first tier
reference:
- title: 7 AAC 45.480(b)-(d) - Deductions from income
href: https://www.akleg.gov/basis/aac.asp?media=print&secStart=7.45.480&secEnd=7.45.480
- title: Alaska TANF State Plan effective December 31, 2013, section 13.2
href: https://aws.state.ak.us/OnlinePublicNotices/Notices/Attachment.aspx?id=93326#page=27
- title: "Alaska TANF State Plan (2026–2028), section 12.2 #page 23-24"
href: https://health.alaska.gov/media/hgja52sa/alaska-tanf-state-plan-2026-2028.pdf#page=23
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
description: Alaska excludes this share of remaining earned income after the flat deduction under the Alaska Temporary Assistance Program.
# NOTE: Tier 1 rate applies to months 1-12 of participation. Subsequent tiers
# (25%/20%/15%/10%/0%) span 12-month blocks beyond the first year.
description: Alaska excludes this share of remaining earned income after the flat deduction in the first tier of the work incentive deduction.

values:
2005-01-01: 0.33
Expand All @@ -10,5 +8,5 @@ metadata:
period: month
label: Alaska ATAP work incentive percentage rate
reference:
- title: 7 AAC 45.480(b) - Deductions from income
href: https://www.law.cornell.edu/regulations/alaska/7-AAC-45.480
- title: 7 AAC 45.480(b)(1) - Deductions from income
href: https://www.akleg.gov/basis/aac.asp?media=print&secStart=7.45.480&secEnd=7.45.480
17 changes: 17 additions & 0 deletions policyengine_us/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,23 @@ def __init__(self, *args, **kwargs):
_sync_input_variables(self)
_rebuild_baseline_branch(self)

def set_input(self, variable_name, period, value):
result = super().set_input(variable_name, period, value)
if variable_name in {
"receives_tanf",
"is_tanf_enrolled",
"ak_atap_received_benefits_person",
"ak_atap_earnings_month_status",
"ak_atap_prior_earnings_months",
"ak_atap_work_incentive_eligible_person",
} and self.get_holder(
"ak_atap_countable_earned_income_person"
).get_known_periods(self.branch_name):
# Newly supplied history can change later ATAP amounts even when
# no calculation previously read that month.
self.drop_computed_arrays()
return result


def _download_or_explain(dataset_str, download):
"""Name the unresolved dataset URI instead of re-raising a Hub exception.
Expand Down
38 changes: 38 additions & 0 deletions policyengine_us/tests/core/test_ak_atap_history.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
from policyengine_us import Simulation


def test_adding_atap_receipt_history_recalculates_countable_income():
simulation = Simulation(
situation={
"people": {
"adult": {"employment_income_before_lsr": {"2025": 9600, "2026": 9600}},
"child": {"age": {"2026": 8}},
},
"spm_units": {
"unit": {
"members": ["adult", "child"],
"is_tanf_enrolled": {"2026-01": True},
}
},
"households": {
"home": {
"members": ["adult", "child"],
"state_code": {"2025": "AK", "2026": "AK"},
}
},
}
)
variable = "ak_atap_countable_earned_income_person"
assert simulation.calculate(variable, "2026-01").tolist() == [435.5, 0]
assert simulation.calculate("ak_atap_countable_income", "2026-01").tolist() == [
435.5
]

for month in range(1, 13):
simulation.set_input("receives_tanf", f"2025-{month:02}", [True])

# ($800 - $150) * 75% = $487.50 after twelve qualifying earnings months.
assert simulation.calculate(variable, "2026-01").tolist() == [487.5, 0]
assert simulation.calculate("ak_atap_countable_income", "2026-01").tolist() == [
487.5
]
Loading
Loading