{
 "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 Middletown, including department detail.",
  "town_scope_note": "`function_totals` covers Middletown 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 Middletown: 2023.",
  "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": "Middletown",
 "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": 7487800,
    "benefits": 2685200,
    "other": 0,
    "total": 10173000
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 7487800,
    "benefits": 2685200,
    "other": 0,
    "total": 10173000
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 10540000,
    "benefits": 4155500,
    "other": 3199500,
    "total": 17895000
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 10540000,
    "benefits": 4155500,
    "other": 3199500,
    "total": 17895000
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 4245080,
    "benefits": 974920,
    "other": 300000,
    "total": 5520000
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 4245080,
    "benefits": 974920,
    "other": 300000,
    "total": 5520000
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 979800,
    "benefits": 386300,
    "other": 286900,
    "total": 1653000
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 979800,
    "benefits": 386300,
    "other": 286900,
    "total": 1653000
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 3957520,
    "benefits": 1560300,
    "other": 441180,
    "total": 5959000
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 2367000,
    "benefits": 933200,
    "other": 263870,
    "total": 3564070
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 644200,
    "benefits": 254000,
    "other": 71800,
    "total": 970000
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 946320,
    "benefits": 373100,
    "other": 105510,
    "total": 1424930
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 50935000,
    "benefits": 15748000,
    "other": 31679000,
    "total": 98362000
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 50935000,
    "benefits": 15748000,
    "other": 31679000,
    "total": 98362000
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 9762220,
    "total": 9762220
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 9762220,
    "total": 9762220
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 11693780,
    "total": 11693780
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 11693780,
    "total": 11693780
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 78145200,
    "benefits": 25510220,
    "other": 57362580,
    "total": 161018000
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 7692400,
    "benefits": 2758600,
    "other": 0,
    "total": 10451000
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 7692400,
    "benefits": 2758600,
    "other": 0,
    "total": 10451000
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 10556000,
    "benefits": 7320000,
    "other": 46000,
    "total": 17922000
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 10556000,
    "benefits": 7320000,
    "other": 46000,
    "total": 17922000
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 4392000,
    "benefits": 1009000,
    "other": 310000,
    "total": 5711000
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 4392000,
    "benefits": 1009000,
    "other": 310000,
    "total": 5711000
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1033000,
    "benefits": 407100,
    "other": 301900,
    "total": 1742000
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 1033000,
    "benefits": 407100,
    "other": 301900,
    "total": 1742000
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 3884400,
    "benefits": 1531500,
    "other": 433100,
    "total": 5849000
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 2323300,
    "benefits": 916000,
    "other": 259000,
    "total": 3498300
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 632300,
    "benefits": 249300,
    "other": 70500,
    "total": 952100
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 928800,
    "benefits": 366200,
    "other": 103600,
    "total": 1398600
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 56667000,
    "benefits": 16141000,
    "other": 26495000,
    "total": 99303000
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 56667000,
    "benefits": 16141000,
    "other": 26495000,
    "total": 99303000
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 21132000,
    "total": 21132000
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 21132000,
    "total": 21132000
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 84224800,
    "benefits": 29167200,
    "other": 48718000,
    "total": 162110000
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 7865370,
    "benefits": 2820630,
    "other": 0,
    "total": 10686000
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 7865370,
    "benefits": 2820630,
    "other": 0,
    "total": 10686000
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 11000104,
    "benefits": 7627960,
    "other": 47936,
    "total": 18676000
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 11000104,
    "benefits": 7627960,
    "other": 47936,
    "total": 18676000
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 4605025,
    "benefits": 1057940,
    "other": 325035,
    "total": 5988000
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 4605025,
    "benefits": 1057940,
    "other": 325035,
    "total": 5988000
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 952355,
    "benefits": 375320,
    "other": 278325,
    "total": 1606000
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 952355,
    "benefits": 375320,
    "other": 278325,
    "total": 1606000
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 4085730,
    "benefits": 1699800,
    "other": 534470,
    "total": 6320000
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 2466540,
    "benefits": 999760,
    "other": 279850,
    "total": 3746150
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 658295,
    "benefits": 294350,
    "other": 88180,
    "total": 1040825
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 960895,
    "benefits": 405690,
    "other": 166440,
    "total": 1533025
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 55799569,
    "benefits": 16299889,
    "other": 31169542,
    "total": 103269000
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 55799569,
    "benefits": 16299889,
    "other": 31169542,
    "total": 103269000
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 21174000,
    "total": 21174000
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 21174000,
    "total": 21174000
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 84308153,
    "benefits": 29881539,
    "other": 53529308,
    "total": 167719000
   }
  ]
 }
}