From d8367a2a4c5a2c8cadb5c0c1b0ec9ac7ccab3419 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 1 Dec 2026 06:59:20 +0000 Subject: [PATCH] Allocate Kentucky CCAP bills to children who attend Co-Authored-By: GPT-6.2 Sol --- ...ky-ccap-bill-for-children-in-care.fixed.md | 1 + .../ky/dcbs/ccap/ky_ccap_daily_benefit.yaml | 144 ++++++++++++++++++ .../ky/dcbs/ccap/ky_child_care_subsidies.yaml | 66 ++++++++ .../ky/dcbs/ccap/ky_ccap_daily_benefit.py | 22 ++- 4 files changed, 231 insertions(+), 2 deletions(-) create mode 100644 changelog.d/ky-ccap-bill-for-children-in-care.fixed.md diff --git a/changelog.d/ky-ccap-bill-for-children-in-care.fixed.md b/changelog.d/ky-ccap-bill-for-children-in-care.fixed.md new file mode 100644 index 00000000000..4e2c3e35a42 --- /dev/null +++ b/changelog.d/ky-ccap-bill-for-children-in-care.fixed.md @@ -0,0 +1 @@ +Kentucky CCAP now allocates the family's child care bill to the children who attend when calculating reimbursement. diff --git a/policyengine_us/tests/policy/baseline/gov/states/ky/dcbs/ccap/ky_ccap_daily_benefit.yaml b/policyengine_us/tests/policy/baseline/gov/states/ky/dcbs/ccap/ky_ccap_daily_benefit.yaml index de72f3076f9..474017b7394 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ky/dcbs/ccap/ky_ccap_daily_benefit.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ky/dcbs/ccap/ky_ccap_daily_benefit.yaml @@ -210,3 +210,147 @@ output: # min(30 + 5, 100) = 35. ky_ccap_daily_benefit: 35 + +- name: Case 8, a family bill follows the children with care days and still has a rate cap. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + capped_parent: + <<: &parent + age: 30 + employment_income: 12_000 + weekly_hours_worked_before_lsr: 30 + childcare_attending_days_per_month: 20 + capped_child: &attending_child + age: 4 + immigration_status: CITIZEN + childcare_attending_days_per_month: 20 + childcare_hours_per_day: 8 + ky_ccap_daily_rate: 30 + capped_sibling: &non_attending_child + age: 8 + immigration_status: CITIZEN + childcare_attending_days_per_month: 0 + both_parent: *parent + both_child: *attending_child + both_sibling: + <<: *attending_child + age: 8 + neither_parent: *parent + neither_child: + <<: *attending_child + childcare_attending_days_per_month: 0 + neither_sibling: *non_attending_child + tax_units: + capped: + members: &capped [capped_parent, capped_child, capped_sibling] + both: + members: &both [both_parent, both_child, both_sibling] + neither: + members: &neither [neither_parent, neither_child, neither_sibling] + spm_units: + capped: + members: *capped + spm_unit_pre_subsidy_childcare_expenses: 12_000 + both: + members: *both + spm_unit_pre_subsidy_childcare_expenses: 5_760 + neither: + members: *neither + spm_unit_pre_subsidy_childcare_expenses: 5_760 + households: + capped: + members: *capped + state_code: KY + county_str: JEFFERSON_COUNTY_KY + both: + members: *both + state_code: KY + county_str: JEFFERSON_COUNTY_KY + neither: + members: *neither + state_code: KY + county_str: JEFFERSON_COUNTY_KY + output: + ky_ccap_daily_benefit: + # One child attends. The parent's days do not count. min(12_000 / 12 / 20, 30) = $30. + - 0 + - 30 + - 0 + # Both attend. 5_760 / 12 / 2 / 20 = $12 per child per day. + - 0 + - 12 + - 12 + # Neither attends, so there is no daily benefit. + - 0 + - 0 + - 0 + # With zero copay, the families get 30 x 20, 2 x 12 x 20, and 0. + ky_ccap: [600, 480, 0] + +- name: Case 9, each attending child keeps their own bill and gets an equal part of an unused share. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + shared_parent: &parent_with_person_bill + age: 30 + employment_income: 12_000 + weekly_hours_worked_before_lsr: 30 + shared_child: &child + age: 4 + immigration_status: CITIZEN + childcare_attending_days_per_month: 20 + childcare_hours_per_day: 8 + ky_ccap_daily_rate: 30 + pre_subsidy_childcare_expenses: 1_440 + shared_sibling: &sibling + <<: *child + age: 8 + pre_subsidy_childcare_expenses: 2_880 + shared_non_attending_child: &non_attending_child_with_person_bill + age: 10 + immigration_status: CITIZEN + childcare_attending_days_per_month: 0 + pre_subsidy_childcare_expenses: 1_440 + separate_parent: *parent_with_person_bill + separate_child: *child + separate_sibling: *sibling + separate_non_attending_child: + <<: *non_attending_child_with_person_bill + pre_subsidy_childcare_expenses: 0 + tax_units: + shared: + members: &shared [shared_parent, shared_child, shared_sibling, shared_non_attending_child] + separate: + members: &separate [separate_parent, separate_child, separate_sibling, separate_non_attending_child] + spm_units: + shared: + members: *shared + separate: + members: *separate + households: + shared: + members: *shared + state_code: KY + county_str: JEFFERSON_COUNTY_KY + separate: + members: *separate + state_code: KY + county_str: JEFFERSON_COUNTY_KY + output: + ky_ccap_daily_benefit: + # Move 1_440 / 12 / 2 = $60 per month to each attending child. + # Their daily charges are (120 + 60) / 20 = $9 and (240 + 60) / 20 = $15. + - 0 + - 9 + - 15 + - 0 + # With bills only for children in care, 120 / 20 = $6 and 240 / 20 = $12. + - 0 + - 6 + - 12 + - 0 + # With zero copay, (9 + 15) x 20 = $480 and (6 + 12) x 20 = $360. + ky_ccap: [480, 360] diff --git a/policyengine_us/tests/policy/baseline/gov/states/ky/dcbs/ccap/ky_child_care_subsidies.yaml b/policyengine_us/tests/policy/baseline/gov/states/ky/dcbs/ccap/ky_child_care_subsidies.yaml index 5169d65b008..1f9ed64a8ea 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ky/dcbs/ccap/ky_child_care_subsidies.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ky/dcbs/ccap/ky_child_care_subsidies.yaml @@ -65,3 +65,69 @@ county_str: HAMILTON_COUNTY_OH output: ky_child_care_subsidies: 0 + +- name: Case 3, a sibling with no care days does not reduce the subsidy for a family bill. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + parent_with_sibling: &parent + age: 30 + employment_income: 12_000 + weekly_hours_worked_before_lsr: 30 + child_with_sibling: &attending_child + age: 4 + immigration_status: CITIZEN + childcare_attending_days_per_month: 20 + childcare_hours_per_day: 8 + ky_ccap_daily_rate: + 2026-01: 30 + 2026-02: 30 + 2026-03: 30 + 2026-04: 30 + 2026-05: 30 + 2026-06: 30 + 2026-07: 30 + 2026-08: 30 + 2026-09: 30 + 2026-10: 30 + 2026-11: 30 + 2026-12: 30 + sibling: + age: 8 + immigration_status: CITIZEN + childcare_attending_days_per_month: 0 + parent_without_sibling: *parent + child_without_sibling: *attending_child + tax_units: + with_sibling: + members: &with_sibling [parent_with_sibling, child_with_sibling, sibling] + without_sibling: + members: &without_sibling [parent_without_sibling, child_without_sibling] + spm_units: + with_sibling: + members: *with_sibling + spm_unit_pre_subsidy_childcare_expenses: 5_760 + without_sibling: + members: *without_sibling + spm_unit_pre_subsidy_childcare_expenses: 5_760 + households: + with_sibling: + members: *with_sibling + state_code: KY + county_str: JEFFERSON_COUNTY_KY + without_sibling: + members: *without_sibling + state_code: KY + county_str: JEFFERSON_COUNTY_KY + output: + # With or without a sibling, min(5_760 / 12 / 20, 30) = $24 per day. + ky_ccap_daily_benefit: + 2026-01: [0, 24, 0, 0, 24] + # Each family's $1,000 monthly income has a $0 copay. + ky_ccap_copay: + 2026-01: [0, 0] + # 24 x 20 = $480 per month, or 480 x 12 = $5,760 per year. + ky_ccap: + 2026-01: [480, 480] + ky_child_care_subsidies: [5_760, 5_760] diff --git a/policyengine_us/variables/gov/states/ky/dcbs/ccap/ky_ccap_daily_benefit.py b/policyengine_us/variables/gov/states/ky/dcbs/ccap/ky_ccap_daily_benefit.py index d9e90b1ec27..aa9265f2ad0 100644 --- a/policyengine_us/variables/gov/states/ky/dcbs/ccap/ky_ccap_daily_benefit.py +++ b/policyengine_us/variables/gov/states/ky/dcbs/ccap/ky_ccap_daily_benefit.py @@ -9,8 +9,10 @@ class ky_ccap_daily_benefit(Variable): definition_period = MONTH defined_for = "ky_ccap_eligible_child" reference = ( + # PDF pages 10-11. "https://apps.legislature.ky.gov/law/kar/downloads/docs/10239/document.engrossed.pdf#page=10", "https://apps.legislature.ky.gov/law/kar/registers/49Ky_R_2022-23/02_Aug.pdf#page=70", + "https://apps.legislature.ky.gov/law/kar/downloads/docs/15544/document.engrossed.pdf#page=11", "https://www.chfs.ky.gov/agencies/dcbs/dcc/Documents/dcc300kymaxpaymentchart.pdf#page=1", ) @@ -49,11 +51,27 @@ def formula(person, period, parameters): monthly_care_days = person( "childcare_attending_days_per_month", period.this_year ) - mask = monthly_care_days > 0 + has_care_days = monthly_care_days > 0 + # Keep each attending child's share and split the unused shares evenly. + # CCAP can also cover eligible 18-year-olds. + attending_child = has_care_days & ( + person("is_child", period.this_year) + | person("ky_ccap_eligible_child", period) + ) + spm_unit = person.spm_unit + attending_count = spm_unit.sum(attending_child) + unused_expenses = spm_unit.sum(where(attending_child, 0, pre_subsidy)) + additional_share = unused_expenses / max_(attending_count, 1) + pre_subsidy = where( + attending_count > 0, + where(attending_child, pre_subsidy + additional_share, 0), + pre_subsidy, + ) + daily_charge = np.divide( pre_subsidy, monthly_care_days, out=np.zeros_like(pre_subsidy, dtype=float), - where=mask, + where=has_care_days, ) return max_(min_(total_rate, daily_charge), 0)