Repository: PolicyEngine/policyengine-us (language: python)

Issue:
CalFresh (SNAP) Standard Medical Deduction Amount (October 1, 2024)
SMD goes to $150 

[Reference
](https://cdss.ca.gov/Portals/9/Additional-Resources/Letters-and-Notices/ACLs/2024/24-59.pdf?ver=2024-08-19-094023-573)


Discussion / hints:

Fix patch:
diff --git a/changelog_entry.yaml b/changelog_entry.yaml
index e69de29bb2d..a139d870bdb 100644
--- a/changelog_entry.yaml
+++ b/changelog_entry.yaml
@@ -0,0 +1,4 @@
+- bump: minor
+  changes:
+    added:
+    - 2024 CalFresh (SNAP) standard medical deduction amount increase.
diff --git a/policyengine_us/parameters/gov/usda/snap/income/deductions/excess_medical_expense/standard.yaml b/policyengine_us/parameters/gov/usda/snap/income/deductions/excess_medical_expense/standard.yaml
index e089c911dc0..eaac15064b7 100644
--- a/policyengine_us/parameters/gov/usda/snap/income/deductions/excess_medical_expense/standard.yaml
+++ b/policyengine_us/parameters/gov/usda/snap/income/deductions/excess_medical_expense/standard.yaml
@@ -14,6 +14,12 @@ AZ:
 CA:
   2010-01-01: 0
   2021-10-01: 120
+  2024-10-01:
+    value: 150
+    metadata:
+      reference:
+        - title: California Department of Social Services, Executive Summary, All County Letter No. 24-59, Project Changes
+          href: https://cdss.ca.gov/Portals/9/Additional-Resources/Letters-and-Notices/ACLs/2024/24-59.pdf?ver=2024-08-19-094023-573#page=3
 CO:
   2010-01-01: 0
   2022-10-01:


Test patch:
diff --git a/policyengine_us/tests/policy/baseline/gov/usda/snap/income/deductions/snap_excess_medical_expense_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/usda/snap/income/deductions/snap_excess_medical_expense_deduction.yaml
index 24d740ac6bf..984c6ee9072 100644
--- a/policyengine_us/tests/policy/baseline/gov/usda/snap/income/deductions/snap_excess_medical_expense_deduction.yaml
+++ b/policyengine_us/tests/policy/baseline/gov/usda/snap/income/deductions/snap_excess_medical_expense_deduction.yaml
@@ -26,7 +26,7 @@
     medical_out_of_pocket_expenses: 35.01 * 12
     state_code_str: CA
   output:
-    snap_excess_medical_expense_deduction: 1472.62
+    snap_excess_medical_expense_deduction: 120 * 12
 
 - name: Elderly/disabled person in California with $155 medical expenses gets the standard medical expense deduction.
   period: 2022
@@ -37,7 +37,7 @@
     medical_out_of_pocket_expenses: 155 * 12
     state_code_str: CA
   output:
-    snap_excess_medical_expense_deduction: 1472.61
+    snap_excess_medical_expense_deduction: (155 - 35) * 12
 
 - name: Elderly person in California with $156 medical expenses takes the normal deduction.
   period: 2022
@@ -47,7 +47,38 @@
     medical_out_of_pocket_expenses: 156 * 12
     state_code_str: CA
   output:
-    snap_excess_medical_expense_deduction: 1481.62
+    snap_excess_medical_expense_deduction: (156 - 35) * 12
+
+- name: Disabled person in California with $35.01 medical expenses gets the standard medical expense deduction.
+  period: 2025
+  absolute_error_margin: 1
+  input:
+    is_usda_disabled: true
+    medical_out_of_pocket_expenses: 35.01 * 12
+    state_code_str: CA
+  output:
+    snap_excess_medical_expense_deduction: (150 * (1 + (321.2 - 313.7) / 313.7)) * 3 + 150 * 9 # includes SNAP uprating forecast for last 3 months of the year
+
+- name: Elderly/disabled person in California with $185 medical expenses gets the standard medical expense deduction.
+  period: 2025
+  absolute_error_margin: 1
+  input:
+    is_usda_disabled: true
+    is_usda_elderly: true
+    medical_out_of_pocket_expenses: 185 * 12
+    state_code_str: CA
+  output:
+    snap_excess_medical_expense_deduction: (150 * (1 + (321.2 - 313.7) / 313.7)) * 3 + 150 * 9 # includes SNAP uprating forecast for last 3 months of the year
+
+- name: Elderly person in California with $186 medical expenses takes the normal deduction.
+  period: 2025
+  absolute_error_margin: 1
+  input:
+    is_usda_elderly: true
+    medical_out_of_pocket_expenses: 186 * 12
+    state_code_str: CA
+  output:
+    snap_excess_medical_expense_deduction: (150 * (1 + (321.2 - 313.7) / 313.7)) * 3 + 151 * 9 # includes SNAP uprating forecast for last 3 months of the year
 
 - name: Expenses must be for the elderly/disabled person.
   period: 2022