{
 "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 Plainville, including department detail.",
  "town_scope_note": "`function_totals` covers Plainville 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 Plainville: 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": "Plainville",
 "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": 1304023,
    "benefits": 0,
    "other": 1045286,
    "total": 2349309
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1304023,
    "benefits": 0,
    "other": 1045286,
    "total": 2349309
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 4700892,
    "benefits": 0,
    "other": 580630,
    "total": 5281522
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4500258,
    "benefits": 0,
    "other": 301439,
    "total": 4801697
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 107220,
    "benefits": 0,
    "other": 251092,
    "total": 358312
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 93414,
    "benefits": 0,
    "other": 28099,
    "total": 121513
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2016372,
    "benefits": 0,
    "other": 1910910,
    "total": 3927282
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1577458,
    "benefits": 0,
    "other": 439446,
    "total": 2016904
   },
   {
    "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": 438914,
    "benefits": 0,
    "other": 1471464,
    "total": 1910378
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 440018,
    "benefits": 0,
    "other": 1451878,
    "total": 1891896
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 440018,
    "benefits": 0,
    "other": 40556,
    "total": 480574
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 1411322,
    "total": 1411322
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 163660,
    "benefits": 0,
    "other": 12453,
    "total": 176113
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 163660,
    "benefits": 0,
    "other": 12453,
    "total": 176113
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 24849192,
    "benefits": 7417975,
    "other": 10684855,
    "total": 42952022
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 24849192,
    "benefits": 7417975,
    "other": 10684855,
    "total": 42952022
   },
   {
    "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": 4731217,
    "total": 4731217
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 4731217,
    "total": 4731217
   },
   {
    "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": 3667295,
    "other": 0,
    "total": 3667295
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 3667295,
    "other": 0,
    "total": 3667295
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 33474157,
    "benefits": 11085270,
    "other": 20417229,
    "total": 64976656
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2432180,
    "benefits": 0,
    "other": 0,
    "total": 2432180
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2432180,
    "benefits": 0,
    "other": 0,
    "total": 2432180
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 5304062,
    "benefits": 0,
    "other": 0,
    "total": 5304062
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4727540,
    "benefits": 0,
    "other": 0,
    "total": 4727540
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 478196,
    "benefits": 0,
    "other": 0,
    "total": 478196
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 98326,
    "benefits": 0,
    "other": 0,
    "total": 98326
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 4013876,
    "benefits": 0,
    "other": 0,
    "total": 4013876
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 4013876,
    "benefits": 0,
    "other": 0,
    "total": 4013876
   },
   {
    "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": 1748071,
    "benefits": 0,
    "other": 0,
    "total": 1748071
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 1748071,
    "benefits": 0,
    "other": 0,
    "total": 1748071
   },
   {
    "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": 143154,
    "benefits": 0,
    "other": 0,
    "total": 143154
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 143154,
    "benefits": 0,
    "other": 0,
    "total": 143154
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 37008069,
    "benefits": 7742661,
    "other": 0,
    "total": 44750730
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 37008069,
    "benefits": 7742661,
    "other": 0,
    "total": 44750730
   },
   {
    "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": 4135278,
    "total": 4135278
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 4135278,
    "total": 4135278
   },
   {
    "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": 3842281,
    "other": 0,
    "total": 3842281
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 3842281,
    "other": 0,
    "total": 3842281
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 50649412,
    "benefits": 11584942,
    "other": 4135278,
    "total": 66369632
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2511003,
    "benefits": 0,
    "other": 0,
    "total": 2511003
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2511003,
    "benefits": 0,
    "other": 0,
    "total": 2511003
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 5361937,
    "benefits": 0,
    "other": 0,
    "total": 5361937
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4803785,
    "benefits": 0,
    "other": 0,
    "total": 4803785
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 448955,
    "benefits": 0,
    "other": 0,
    "total": 448955
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 109197,
    "benefits": 0,
    "other": 0,
    "total": 109197
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 4210570,
    "benefits": 0,
    "other": 0,
    "total": 4210570
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 3879688,
    "benefits": 0,
    "other": 0,
    "total": 3879688
   },
   {
    "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": 330882,
    "benefits": 0,
    "other": 0,
    "total": 330882
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1818615,
    "benefits": 0,
    "other": 0,
    "total": 1818615
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 29150,
    "benefits": 0,
    "other": 0,
    "total": 29150
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 1742735,
    "benefits": 0,
    "other": 0,
    "total": 1742735
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 46730,
    "benefits": 0,
    "other": 0,
    "total": 46730
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 176018,
    "benefits": 0,
    "other": 0,
    "total": 176018
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 176018,
    "benefits": 0,
    "other": 0,
    "total": 176018
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 31197126,
    "benefits": 7769518,
    "other": 7592245,
    "total": 46558889
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 31197126,
    "benefits": 7769518,
    "other": 7592245,
    "total": 46558889
   },
   {
    "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": 3415334,
    "total": 3415334
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 3415334,
    "total": 3415334
   },
   {
    "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": 4015130,
    "other": 0,
    "total": 4015130
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 4015130,
    "other": 0,
    "total": 4015130
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 45275269,
    "benefits": 11784648,
    "other": 11007579,
    "total": 68067496
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2686025,
    "benefits": 4304456,
    "other": 0,
    "total": 6990481
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2686025,
    "benefits": 4304456,
    "other": 0,
    "total": 6990481
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 5430503,
    "benefits": 0,
    "other": 0,
    "total": 5430503
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4949807,
    "benefits": 0,
    "other": 0,
    "total": 4949807
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 275258,
    "benefits": 0,
    "other": 0,
    "total": 275258
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 205438,
    "benefits": 0,
    "other": 0,
    "total": 205438
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 4017767,
    "benefits": 0,
    "other": 0,
    "total": 4017767
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 816974,
    "benefits": 0,
    "other": 0,
    "total": 816974
   },
   {
    "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": 3200793,
    "benefits": 0,
    "other": 0,
    "total": 3200793
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1890996,
    "benefits": 0,
    "other": 0,
    "total": 1890996
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 31087,
    "benefits": 0,
    "other": 0,
    "total": 31087
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1859909,
    "benefits": 0,
    "other": 0,
    "total": 1859909
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 184363,
    "benefits": 0,
    "other": 0,
    "total": 184363
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 184363,
    "benefits": 0,
    "other": 0,
    "total": 184363
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 39360979,
    "benefits": 8214789,
    "other": 0,
    "total": 47575768
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 39360979,
    "benefits": 8214789,
    "other": 0,
    "total": 47575768
   },
   {
    "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": 2986357,
    "total": 2986357
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 2986357,
    "total": 2986357
   },
   {
    "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": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 53570633,
    "benefits": 12519245,
    "other": 2986357,
    "total": 69076235
   }
  ]
 }
}