opensandiego / mealscount-backend

Optimizing a free-meal reimbursement program for K-12 schools
MIT License
12 stars 15 forks source link

Add state supplemental rules to show full reimbursement of both state & federal #92

Open nikolajbaer opened 3 years ago

nikolajbaer commented 3 years ago

Several states have supplemental reimbursements available, although how these work takes different forms.

This task is to add support for adding a specific supplemental reimbursement class to different states and surfacing this through the API, to the strategies, as well as on the website.

nikolajbaer commented 3 years ago

Current rules from No Kid Hungry partner:

Additional State Funding for School Meals

State Intent Amount
CA Provide state funds to support F/R lunch and breakfast If F/R breakfast, $0.23If F/R lunch, $0.23
CO Provide state funds to eliminate the reduced price fee If R breakfast, $0.30If R lunch, $0.40
CT Provide state funds to lunches that met state nutrition standards in the previous year. If lunch meets meal pattern, $0.17 ($0.10 from CT, $0.07 from USDA)
DC Provide state funds to eliminate the reduced price fee for lunch. Provide additional funds to breakfast and lunches that meet HHFKA nutrition standards. If R lunch, $0.40If breakfast meets meal pattern, $0.27 ($.20 from DC, $0.07 from USDA)If lunch meets meal pattern, $0.27 ($.20 from DC, $0.07 from USDA)
IL Provide state funds to support F lunch and breakfast. Law authorizes $0.15 but with lower appropriations actual amounts have been closer to $0.04 If F breakfast, $0.04If F lunch, $0.04
IA Provide state funds to support breakfast and lunch If breakfast, $0.028If lunch, $ 0.028
KS Provide state funds to support lunch If lunch, $0.04
ME Provide state funds to eliminate the reduced price fee If R breakfast, $0.30If R lunch, $0.40
MD Provide state funds to eliminate the reduced price fee over a four year phase in period starting in SY19 If R breakfast, $0.20If R lunch, $0.20
MA Provide state funds to support lunch If lunch, $0.06
MN Provide state funds to eliminate the reduced price fee If R breakfast, $0.30If R lunch, $0.40
NE Provide state funds to support breakfast If breakfast, $0.05
NH Provide state funds to eliminate the reduced price fee for breakfast If R breakfast, $0.30
NJ Provide state funds to support lunch If F/R lunch, $0.055If P lunch, $0.04
NY Provide state funds to support lunch and breakfast and eliminate reduced price fee If F breakfast, $0.1013If R breakfast, $0.1566If P breakfast, $0.0023If F or P lunch, $0.0599If R lunch, $0.1981
NM Provide state funds to eliminate reduced price fee for breakfast and lunch If R breakfast, $0.30If R lunch, $0.40
NC Provide state funds to eliminate the reduced price fee for breakfast If R breakfast, $0.30
ND Provide state funds to eliminate the reduced price fee for breakfast If R breakfast, $0.30
PA Provide state funds for breakfasts and lunch served. If breakfast, $0.14If lunch, $0.12
OR Provide state funds to eliminate the reduced price fee If R breakfast, $0.30If R lunch, $0.40
VT Provide state funds to eliminate the reduced price fee If R breakfast, $0.30If R lunch, $0.40
WI Provide state funds to support lunch and breakfast If any lunch, $0.0491If any breakfast, $0.08137
WA Provide state funds to eliminate the reduced price fee for breakfast If R breakfast, $0.30
nikolajbaer commented 3 years ago

I think the first step will be to

  1. Create a base class and variations of these State Reimbursements
  2. Create a config for each applicable state that specifies which class / parameters are used per state
  3. Have a way to load this when creating a district (simplistic constructor parameter is fine for phase 1)
  4. Add a method to calculate the state reimbursement to the CEPGroup alongside the regular reimbursement

Once this is established and testable, we can surface this information through the rest of the UI, and implement it where applicable in the optimization strategies.

nikolajbaer commented 3 years ago

Update - The short goal for this would be to just have an indicator per state to indicate and show notice that there are state supplemental funds available, then link out to the No Kid Hungry calculator to get a full picture.