{
 "metadata": {
  "source": "CT Office of Policy and Management — Municipal Fiscal Indicators, Uniform Chart of Accounts",
  "dataset_id": "e2qt-k238",
  "dataset_name": "Municipal Fiscal Indicators: Uniform Chart of Accounts, 2020-2023",
  "landing_page": "https://data.ct.gov/d/e2qt-k238",
  "source_url": "https://data.ct.gov/resource/e2qt-k238.json",
  "pulled": "2026-08-25",
  "dataset_last_updated": "2026-03-03",
  "recipe": "python Data/fetch_ct_ucoa.py (Python 3, standard library, no API key)",
  "row_count_source": 17632,
  "fiscal_year_note": "OPM year Y = the fiscal year ending June 30 of year Y. 2023 = FY 2022-23.",
  "basis_note": "Audited actual expenditures cross-walked to the state Uniform Chart of Accounts, split into salaries/wages, employee benefits, and all other costs. Same basis as ct_ucoa_town_indicators.json — actuals across funds, not the adopted budget.",
  "structure_note": "`function_totals` holds each town's function-level subtotal rows (the source's '<Function> Total' and 'Total Expenditures' rows), so figures are not double counted. `target_departments` holds every row the source publishes for Middlebury, including department detail.",
  "town_scope_note": "`function_totals` covers Middlebury and its hand-built peer groups only, to keep the browser download small. All 170 entities are in Data/ct_ucoa/mfi_ucoa_by_function_2020-2023.csv.",
  "gap_note": "The source omits some town-years entirely; those years are absent rather than zero. Missing for Middlebury: none.",
  "merge_note": "`function_totals` is not in this file. It is statewide and identical for every town, so it is published once at /data/ct_ucoa_function_totals.json and merged onto this payload at runtime by TownCharts.load(). `target_departments` below is this town's own department detail and appears nowhere else."
 },
 "target": "Middlebury",
 "years": [
  "2020",
  "2021",
  "2022",
  "2023"
 ],
 "fiscal_years": [
  "19-20",
  "20-21",
  "21-22",
  "22-23"
 ],
 "target_departments": {
  "2020": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 4041468,
    "benefits": 0,
    "other": 0,
    "total": 4041468
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 4041468,
    "benefits": 0,
    "other": 0,
    "total": 4041468
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 2125189,
    "benefits": 0,
    "other": 0,
    "total": 2125189
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 1472169,
    "benefits": 0,
    "other": 0,
    "total": 1472169
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 285254,
    "benefits": 0,
    "other": 0,
    "total": 285254
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 367766,
    "benefits": 0,
    "other": 0,
    "total": 367766
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2456095,
    "benefits": 0,
    "other": 0,
    "total": 2456095
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1645487,
    "benefits": 0,
    "other": 0,
    "total": 1645487
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 364391,
    "benefits": 0,
    "other": 0,
    "total": 364391
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 446217,
    "benefits": 0,
    "other": 0,
    "total": 446217
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 134485,
    "benefits": 0,
    "other": 0,
    "total": 134485
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 45518,
    "benefits": 0,
    "other": 0,
    "total": 45518
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 88967,
    "benefits": 0,
    "other": 0,
    "total": 88967
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 799106,
    "benefits": 0,
    "other": 0,
    "total": 799106
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 405293,
    "benefits": 0,
    "other": 0,
    "total": 405293
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 393813,
    "benefits": 0,
    "other": 0,
    "total": 393813
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 23170483,
    "total": 23170483
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 23170483,
    "total": 23170483
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 612041,
    "total": 612041
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 612041,
    "total": 612041
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 441095,
    "total": 441095
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 441095,
    "total": 441095
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 9556343,
    "benefits": 0,
    "other": 24223619,
    "total": 33779962
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 3556743,
    "benefits": 0,
    "other": 0,
    "total": 3556743
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 3556743,
    "benefits": 0,
    "other": 0,
    "total": 3556743
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 2234890,
    "benefits": 0,
    "other": 0,
    "total": 2234890
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 1637625,
    "benefits": 0,
    "other": 0,
    "total": 1637625
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 262231,
    "benefits": 0,
    "other": 0,
    "total": 262231
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 335034,
    "benefits": 0,
    "other": 0,
    "total": 335034
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2716561,
    "benefits": 0,
    "other": 0,
    "total": 2716561
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1696690,
    "benefits": 0,
    "other": 0,
    "total": 1696690
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 393255,
    "benefits": 0,
    "other": 0,
    "total": 393255
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 626616,
    "benefits": 0,
    "other": 0,
    "total": 626616
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 113874,
    "benefits": 0,
    "other": 0,
    "total": 113874
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 45739,
    "benefits": 0,
    "other": 0,
    "total": 45739
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 68135,
    "benefits": 0,
    "other": 0,
    "total": 68135
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 753409,
    "benefits": 0,
    "other": 0,
    "total": 753409
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 397010,
    "benefits": 0,
    "other": 0,
    "total": 397010
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 356399,
    "benefits": 0,
    "other": 0,
    "total": 356399
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 24902260,
    "total": 24902260
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 24902260,
    "total": 24902260
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 885559,
    "total": 885559
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 885559,
    "total": 885559
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 240039,
    "total": 240039
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 240039,
    "total": 240039
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 9375477,
    "benefits": 0,
    "other": 26027858,
    "total": 35403335
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 3909781,
    "benefits": 0,
    "other": 0,
    "total": 3909781
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 3909781,
    "benefits": 0,
    "other": 0,
    "total": 3909781
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 2463101,
    "benefits": 0,
    "other": 0,
    "total": 2463101
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 1784459,
    "benefits": 0,
    "other": 0,
    "total": 1784459
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 323250,
    "benefits": 0,
    "other": 0,
    "total": 323250
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 355392,
    "benefits": 0,
    "other": 0,
    "total": 355392
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2881585,
    "benefits": 0,
    "other": 0,
    "total": 2881585
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1763870,
    "benefits": 0,
    "other": 0,
    "total": 1763870
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 386839,
    "benefits": 0,
    "other": 0,
    "total": 386839
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 730876,
    "benefits": 0,
    "other": 0,
    "total": 730876
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 133415,
    "benefits": 0,
    "other": 0,
    "total": 133415
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 48503,
    "benefits": 0,
    "other": 0,
    "total": 48503
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 84912,
    "benefits": 0,
    "other": 0,
    "total": 84912
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 718488,
    "benefits": 0,
    "other": 0,
    "total": 718488
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 367945,
    "benefits": 0,
    "other": 0,
    "total": 367945
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 350543,
    "benefits": 0,
    "other": 0,
    "total": 350543
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 25002438,
    "total": 25002438
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 25002438,
    "total": 25002438
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 922780,
    "total": 922780
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 922780,
    "total": 922780
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 157813,
    "total": 157813
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 157813,
    "total": 157813
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 10106370,
    "benefits": 0,
    "other": 26083031,
    "total": 36189401
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 4082834,
    "benefits": 0,
    "other": 0,
    "total": 4082834
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 4082834,
    "benefits": 0,
    "other": 0,
    "total": 4082834
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 2578008,
    "benefits": 0,
    "other": 0,
    "total": 2578008
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 1884071,
    "benefits": 0,
    "other": 0,
    "total": 1884071
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 423120,
    "benefits": 0,
    "other": 0,
    "total": 423120
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 270817,
    "benefits": 0,
    "other": 0,
    "total": 270817
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2911703,
    "benefits": 0,
    "other": 0,
    "total": 2911703
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1682669,
    "benefits": 0,
    "other": 0,
    "total": 1682669
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 426005,
    "benefits": 0,
    "other": 0,
    "total": 426005
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 803029,
    "benefits": 0,
    "other": 0,
    "total": 803029
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 142307,
    "benefits": 0,
    "other": 0,
    "total": 142307
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 45789,
    "benefits": 0,
    "other": 0,
    "total": 45789
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 96518,
    "benefits": 0,
    "other": 0,
    "total": 96518
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 760051,
    "benefits": 0,
    "other": 0,
    "total": 760051
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 364162,
    "benefits": 0,
    "other": 0,
    "total": 364162
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 395889,
    "benefits": 0,
    "other": 0,
    "total": 395889
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 26234272,
    "total": 26234272
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 26234272,
    "total": 26234272
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 1190584,
    "total": 1190584
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 1190584,
    "total": 1190584
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 20417,
    "total": 20417
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 20417,
    "total": 20417
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 10474903,
    "benefits": 0,
    "other": 27445273,
    "total": 37920176
   }
  ]
 }
}