{
 "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 Glastonbury, including department detail.",
  "town_scope_note": "`function_totals` covers Glastonbury 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 Glastonbury: 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": "Glastonbury",
 "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": 4593657,
    "benefits": 3700506,
    "other": 2110565,
    "total": 10404728
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 4593657,
    "benefits": 3700506,
    "other": 2110565,
    "total": 10404728
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 8027393,
    "benefits": 5018138,
    "other": 1137416,
    "total": 14182947
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 7334339,
    "benefits": 4837856,
    "other": 606453,
    "total": 12778648
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 467684,
    "benefits": 53402,
    "other": 493239,
    "total": 1014325
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 225370,
    "benefits": 126880,
    "other": 37724,
    "total": 389974
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3598408,
    "benefits": 2090492,
    "other": 1896175,
    "total": 7585075
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2720795,
    "benefits": 1592079,
    "other": 1316602,
    "total": 5629476
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 317342,
    "benefits": 143386,
    "other": 319569,
    "total": 780297
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 560271,
    "benefits": 355027,
    "other": 260004,
    "total": 1175302
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 2019994,
    "benefits": 992655,
    "other": 382670,
    "total": 3395319
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 436602,
    "benefits": 245666,
    "other": 25564,
    "total": 707832
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 1583392,
    "benefits": 746989,
    "other": 324529,
    "total": 2654910
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 32577,
    "total": 32577
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 2875959,
    "benefits": 1306000,
    "other": 1059394,
    "total": 5241353
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 862433,
    "benefits": 347461,
    "other": 493934,
    "total": 1703828
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 2013526,
    "benefits": 958539,
    "other": 565460,
    "total": 3537525
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 71637174,
    "benefits": 36134376,
    "other": 16706595,
    "total": 124478145
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 71637174,
    "benefits": 36134376,
    "other": 16706595,
    "total": 124478145
   },
   {
    "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": 6809882,
    "total": 6809882
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 6809882,
    "total": 6809882
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 1027034,
    "total": 1027034
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 1027034,
    "total": 1027034
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 771597,
    "other": 0,
    "total": 771597
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 771597,
    "other": 0,
    "total": 771597
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 92752585,
    "benefits": 50013764,
    "other": 31129731,
    "total": 173896080
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 4450986,
    "benefits": 4978807,
    "other": 2230446,
    "total": 11660239
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 4450986,
    "benefits": 4978807,
    "other": 2230446,
    "total": 11660239
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 8301291,
    "benefits": 5571959,
    "other": 1141592,
    "total": 15014842
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 7598158,
    "benefits": 5385112,
    "other": 651953,
    "total": 13635223
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 487492,
    "benefits": 50415,
    "other": 455672,
    "total": 993579
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 215641,
    "benefits": 136432,
    "other": 33967,
    "total": 386040
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3593592,
    "benefits": 2136233,
    "other": 2066973,
    "total": 7796798
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2733456,
    "benefits": 1601873,
    "other": 1408590,
    "total": 5743919
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 333343,
    "benefits": 171789,
    "other": 406153,
    "total": 911285
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 526793,
    "benefits": 362571,
    "other": 252230,
    "total": 1141594
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1777785,
    "benefits": 1034537,
    "other": 278041,
    "total": 3090363
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 415011,
    "benefits": 252848,
    "other": 9525,
    "total": 677384
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 1362774,
    "benefits": 781689,
    "other": 235939,
    "total": 2380402
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 32577,
    "total": 32577
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 2674659,
    "benefits": 1366198,
    "other": 1139158,
    "total": 5180015
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 773541,
    "benefits": 364778,
    "other": 442875,
    "total": 1581194
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1901118,
    "benefits": 1001420,
    "other": 696283,
    "total": 3598821
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 72738506,
    "benefits": 36535549,
    "other": 17716378,
    "total": 126990433
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 72738506,
    "benefits": 36535549,
    "other": 17716378,
    "total": 126990433
   },
   {
    "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": 6823949,
    "total": 6823949
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 6823949,
    "total": 6823949
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 1458162,
    "total": 1458162
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 1458162,
    "total": 1458162
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 772346,
    "other": 0,
    "total": 772346
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 772346,
    "other": 0,
    "total": 772346
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 93536819,
    "benefits": 52395629,
    "other": 32854699,
    "total": 178787147
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 4676070,
    "benefits": 3638226,
    "other": 2307757,
    "total": 10622053
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 4676070,
    "benefits": 3638226,
    "other": 2307757,
    "total": 10622053
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 8601355,
    "benefits": 6008841,
    "other": 1232677,
    "total": 15842873
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 7888664,
    "benefits": 5753477,
    "other": 681717,
    "total": 14323858
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 486520,
    "benefits": 123976,
    "other": 529535,
    "total": 1140031
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 226171,
    "benefits": 131388,
    "other": 21425,
    "total": 378984
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3813044,
    "benefits": 1992312,
    "other": 2189025,
    "total": 7994381
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2918745,
    "benefits": 1551825,
    "other": 1401074,
    "total": 5871644
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 336757,
    "benefits": 137062,
    "other": 451108,
    "total": 924927
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 557542,
    "benefits": 303425,
    "other": 336843,
    "total": 1197810
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 2103671,
    "benefits": 1211932,
    "other": 397313,
    "total": 3712916
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 475028,
    "benefits": 300989,
    "other": 14601,
    "total": 790618
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 1628643,
    "benefits": 910943,
    "other": 348635,
    "total": 2888221
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 34077,
    "total": 34077
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 3052476,
    "benefits": 1577080,
    "other": 1138316,
    "total": 5767872
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 841766,
    "benefits": 442607,
    "other": 476747,
    "total": 1761120
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 2210710,
    "benefits": 1134473,
    "other": 661569,
    "total": 4006752
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 75740525,
    "benefits": 36558583,
    "other": 17716961,
    "total": 130016069
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 75740525,
    "benefits": 36558583,
    "other": 17716961,
    "total": 130016069
   },
   {
    "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": 6685398,
    "total": 6685398
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 6685398,
    "total": 6685398
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 1263532,
    "total": 1263532
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 1263532,
    "total": 1263532
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 740663,
    "other": 1270504,
    "total": 2011167
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 740663,
    "other": 1270504,
    "total": 2011167
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 97987141,
    "benefits": 51727637,
    "other": 34201483,
    "total": 183916261
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 5188517,
    "benefits": 3712512,
    "other": 2863732,
    "total": 11764761
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 5188517,
    "benefits": 3712512,
    "other": 2863732,
    "total": 11764761
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 8585927,
    "benefits": 5550501,
    "other": 1445804,
    "total": 15582232
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 7998472,
    "benefits": 5403925,
    "other": 808912,
    "total": 14211309
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 566575,
    "benefits": 144882,
    "other": 626232,
    "total": 1337689
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 20880,
    "benefits": 1694,
    "other": 10660,
    "total": 33234
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3748935,
    "benefits": 1855290,
    "other": 2245899,
    "total": 7850124
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1788472,
    "benefits": 868389,
    "other": 1363624,
    "total": 4020485
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 371284,
    "benefits": 138819,
    "other": 435564,
    "total": 945667
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 1589179,
    "benefits": 848082,
    "other": 446711,
    "total": 2883972
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 2250810,
    "benefits": 1148278,
    "other": 500595,
    "total": 3899683
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 483708,
    "benefits": 277330,
    "other": 19841,
    "total": 780879
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 1767102,
    "benefits": 870948,
    "other": 480754,
    "total": 3118804
   },
   {
    "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": 3220657,
    "benefits": 1459798,
    "other": 1274074,
    "total": 5954529
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 1035782,
    "benefits": 442859,
    "other": 509840,
    "total": 1988481
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 2184875,
    "benefits": 1016939,
    "other": 764234,
    "total": 3966048
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 79966214,
    "benefits": 37187434,
    "other": 17668256,
    "total": 134821904
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 79966214,
    "benefits": 37187434,
    "other": 17668256,
    "total": 134821904
   },
   {
    "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": 6726750,
    "total": 6726750
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 6726750,
    "total": 6726750
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 1273036,
    "total": 1273036
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 1273036,
    "total": 1273036
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 785057,
    "other": 1045311,
    "total": 1830368
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 785057,
    "other": 1045311,
    "total": 1830368
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 102961060,
    "benefits": 51698870,
    "other": 35043457,
    "total": 189703387
   }
  ]
 }
}