{
 "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 Madison, including department detail.",
  "town_scope_note": "`function_totals` covers Madison 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 Madison: 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": "Madison",
 "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": 2161815,
    "benefits": 4937910,
    "other": 816330,
    "total": 7916055
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2161815,
    "benefits": 4937910,
    "other": 816330,
    "total": 7916055
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 3840318,
    "benefits": 0,
    "other": 1663744,
    "total": 5504062
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 3033533,
    "benefits": 0,
    "other": 392345,
    "total": 3425878
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 121617,
    "benefits": 0,
    "other": 1125581,
    "total": 1247198
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 685168,
    "benefits": 0,
    "other": 145818,
    "total": 830986
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1198079,
    "benefits": 0,
    "other": 1912376,
    "total": 3110455
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1198079,
    "benefits": 0,
    "other": 1912376,
    "total": 3110455
   },
   {
    "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": 1359734,
    "benefits": 0,
    "other": 170292,
    "total": 1530026
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 201952,
    "benefits": 0,
    "other": 47659,
    "total": 249611
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1157782,
    "benefits": 0,
    "other": 122633,
    "total": 1280415
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 1211599,
    "benefits": 0,
    "other": 1482341,
    "total": 2693940
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 1154841,
    "total": 1154841
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1211599,
    "benefits": 0,
    "other": 327500,
    "total": 1539099
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 27135952,
    "benefits": 10425116,
    "other": 26094148,
    "total": 63655216
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 27135952,
    "benefits": 10425116,
    "other": 26094148,
    "total": 63655216
   },
   {
    "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": 3401453,
    "total": 3401453
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 3401453,
    "total": 3401453
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 37030,
    "total": 37030
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 37030,
    "total": 37030
   },
   {
    "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": 36907497,
    "benefits": 15363026,
    "other": 35577714,
    "total": 87848237
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2045454,
    "benefits": 5332178,
    "other": 995116,
    "total": 8372748
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2045454,
    "benefits": 5332178,
    "other": 995116,
    "total": 8372748
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 4044001,
    "benefits": 0,
    "other": 2017008,
    "total": 6061009
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 3139967,
    "benefits": 0,
    "other": 392895,
    "total": 3532862
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 160792,
    "benefits": 0,
    "other": 1390882,
    "total": 1551674
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 743242,
    "benefits": 0,
    "other": 233231,
    "total": 976473
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1458633,
    "benefits": 0,
    "other": 2282952,
    "total": 3741585
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1458633,
    "benefits": 0,
    "other": 2282952,
    "total": 3741585
   },
   {
    "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": 1424983,
    "benefits": 0,
    "other": 118872,
    "total": 1543855
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 236484,
    "benefits": 0,
    "other": 29764,
    "total": 266248
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1188499,
    "benefits": 0,
    "other": 89108,
    "total": 1277607
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 1307642,
    "benefits": 0,
    "other": 1545365,
    "total": 2853007
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 1181247,
    "total": 1181247
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1307642,
    "benefits": 0,
    "other": 364118,
    "total": 1671760
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 32820429,
    "benefits": 10470479,
    "other": 20087822,
    "total": 63378730
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 32820429,
    "benefits": 10470479,
    "other": 20087822,
    "total": 63378730
   },
   {
    "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": 3401133,
    "total": 3401133
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 3401133,
    "total": 3401133
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 31481,
    "total": 31481
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 31481,
    "total": 31481
   },
   {
    "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": 43101142,
    "benefits": 15802657,
    "other": 30479749,
    "total": 89383548
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2040630,
    "benefits": 6210436,
    "other": 1191734,
    "total": 9442800
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2040630,
    "benefits": 6210436,
    "other": 1191734,
    "total": 9442800
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 4235867,
    "benefits": 0,
    "other": 2323310,
    "total": 6559177
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 3314644,
    "benefits": 0,
    "other": 626707,
    "total": 3941351
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 168033,
    "benefits": 0,
    "other": 1570395,
    "total": 1738428
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 753190,
    "benefits": 0,
    "other": 126208,
    "total": 879398
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1499345,
    "benefits": 0,
    "other": 2068801,
    "total": 3568146
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1499345,
    "benefits": 0,
    "other": 2068801,
    "total": 3568146
   },
   {
    "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": 1495288,
    "benefits": 0,
    "other": 162363,
    "total": 1657651
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 197350,
    "benefits": 0,
    "other": 43014,
    "total": 240364
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1297938,
    "benefits": 0,
    "other": 119349,
    "total": 1417287
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 1175716,
    "benefits": 0,
    "other": 1923881,
    "total": 3099597
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 1547321,
    "total": 1547321
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1175716,
    "benefits": 0,
    "other": 376560,
    "total": 1552276
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 32724582,
    "benefits": 10292710,
    "other": 21529310,
    "total": 64546602
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 32724582,
    "benefits": 10292710,
    "other": 21529310,
    "total": 64546602
   },
   {
    "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": 3378993,
    "total": 3378993
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 3378993,
    "total": 3378993
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 62705,
    "total": 62705
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 62705,
    "total": 62705
   },
   {
    "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": 43171428,
    "benefits": 16503146,
    "other": 32641097,
    "total": 92315671
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1709330,
    "benefits": 6307158,
    "other": 1577077,
    "total": 9593565
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1709330,
    "benefits": 6307158,
    "other": 1577077,
    "total": 9593565
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 4496678,
    "benefits": 0,
    "other": 2278378,
    "total": 6775056
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 3552529,
    "benefits": 0,
    "other": 433816,
    "total": 3986345
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 206941,
    "benefits": 0,
    "other": 1579730,
    "total": 1786671
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 737208,
    "benefits": 0,
    "other": 264832,
    "total": 1002040
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1587500,
    "benefits": 0,
    "other": 2080239,
    "total": 3667739
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1587500,
    "benefits": 0,
    "other": 2080239,
    "total": 3667739
   },
   {
    "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": 1589245,
    "benefits": 0,
    "other": 149132,
    "total": 1738377
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 230665,
    "benefits": 0,
    "other": 50581,
    "total": 281246
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1358580,
    "benefits": 0,
    "other": 98551,
    "total": 1457131
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 1167145,
    "benefits": 0,
    "other": 1813189,
    "total": 2980334
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 1457837,
    "total": 1457837
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1167145,
    "benefits": 0,
    "other": 355352,
    "total": 1522497
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 33916500,
    "benefits": 10510860,
    "other": 22684967,
    "total": 67112327
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 33916500,
    "benefits": 10510860,
    "other": 22684967,
    "total": 67112327
   },
   {
    "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": 3021504,
    "total": 3021504
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 3021504,
    "total": 3021504
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 60935,
    "total": 60935
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 60935,
    "total": 60935
   },
   {
    "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": 44466398,
    "benefits": 16818018,
    "other": 33665421,
    "total": 94949837
   }
  ]
 }
}