Skip to content
Merged
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
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:
- CA TANF monthly applicant income disregards.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,28 @@
period: 2023
input:
state_code: CA
ca_tanf_earned_income: 451
ca_tanf_earned_income: 5_412 # 451 monthly
ca_tanf_db_unearned_income: 1_000
ca_tanf_other_unearned_income: 2_000
output:
ca_tanf_countable_income_applicant: 3_001
ca_tanf_countable_income_applicant: 3_012

- name: Test that the flat $450 disregard is only subtracted (with floor $0) from earned income as opposed to from the total sum.
period: 2023
input:
state_code: CA
ca_tanf_earned_income: 449
ca_tanf_earned_income: 5_388 # 449 monthly
ca_tanf_db_unearned_income: 1_000
ca_tanf_other_unearned_income: 2_000
output:
ca_tanf_countable_income_applicant: 3_000

- name: Test that the flat $450 disregard is only subtracted (with floor $0) from earned income.
period: 2023
input:
state_code: CA
ca_tanf_earned_income: 5_388 # 449 monthly
ca_tanf_db_unearned_income: 0
ca_tanf_other_unearned_income: 0
output:
ca_tanf_countable_income_applicant: 0
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ def formula(spm_unit, period, parameters):
p = parameters(
period
).gov.states.ca.cdss.tanf.cash.income.disregards.applicant
yearly_disregard = p.flat * MONTHS_IN_YEAR
countable_earned = max_(
spm_unit("ca_tanf_earned_income", period) - p.flat, 0
spm_unit("ca_tanf_earned_income", period) - yearly_disregard, 0
)
db_unearned = spm_unit("ca_tanf_db_unearned_income", period)
other_unearned = spm_unit("ca_tanf_other_unearned_income", period)
Expand Down