{
 "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 Essex, including department detail.",
  "town_scope_note": "`function_totals` covers Essex 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 Essex: 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": "Essex",
 "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": 1010219,
    "benefits": 419110,
    "other": 934580,
    "total": 2363909
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1010219,
    "benefits": 419110,
    "other": 934580,
    "total": 2363909
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 526140,
    "benefits": 637198,
    "other": 923611,
    "total": 2086949
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 374089,
    "benefits": 474516,
    "other": 43898,
    "total": 892503
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 116872,
    "other": 352436,
    "total": 469308
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 152051,
    "benefits": 45810,
    "other": 527277,
    "total": 725138
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 421814,
    "benefits": 185318,
    "other": 584868,
    "total": 1192000
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 421814,
    "benefits": 185318,
    "other": 584868,
    "total": 1192000
   },
   {
    "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": 246869,
    "benefits": 123355,
    "other": 421083,
    "total": 791307
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 123489,
    "benefits": 56236,
    "other": 5792,
    "total": 185517
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 18026,
    "benefits": 6639,
    "other": 88347,
    "total": 113012
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 105354,
    "benefits": 60480,
    "other": 326944,
    "total": 492778
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 71889,
    "benefits": 33980,
    "other": 523487,
    "total": 629356
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 412434,
    "total": 412434
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 71889,
    "benefits": 33980,
    "other": 111053,
    "total": 216922
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 2853688,
    "benefits": 2244088,
    "other": 11017642,
    "total": 16115418
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 2853688,
    "benefits": 2244088,
    "other": 2484348,
    "total": 7582124
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 8533294,
    "total": 8533294
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 1279281,
    "total": 1279281
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 1279281,
    "total": 1279281
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 228715,
    "total": 228715
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 228715,
    "total": 228715
   },
   {
    "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": 5130619,
    "benefits": 3643049,
    "other": 15913267,
    "total": 24686935
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1108696,
    "benefits": 461516,
    "other": 1060303,
    "total": 2630515
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1108696,
    "benefits": 461516,
    "other": 1060303,
    "total": 2630515
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 557129,
    "benefits": 360723,
    "other": 942140,
    "total": 1859992
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 393686,
    "benefits": 251382,
    "other": 55343,
    "total": 700411
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 67372,
    "other": 358900,
    "total": 426272
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 163443,
    "benefits": 41969,
    "other": 527897,
    "total": 733309
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 413081,
    "benefits": 181362,
    "other": 507985,
    "total": 1102428
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 413081,
    "benefits": 181362,
    "other": 507985,
    "total": 1102428
   },
   {
    "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": 242894,
    "benefits": 102182,
    "other": 396437,
    "total": 741513
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 147792,
    "benefits": 57291,
    "other": 31869,
    "total": 236952
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 22532,
    "benefits": 11046,
    "other": 92228,
    "total": 125806
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 72570,
    "benefits": 33845,
    "other": 272340,
    "total": 378755
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 68869,
    "benefits": 33578,
    "other": 550862,
    "total": 653309
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 423776,
    "total": 423776
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 68869,
    "benefits": 33578,
    "other": 127086,
    "total": 229533
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 2996113,
    "benefits": 1877757,
    "other": 11531763,
    "total": 16405633
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 2996113,
    "benefits": 1877757,
    "other": 3241608,
    "total": 8115478
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 8290155,
    "total": 8290155
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 1315932,
    "total": 1315932
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 1315932,
    "total": 1315932
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 427575,
    "total": 427575
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 427575,
    "total": 427575
   },
   {
    "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": 5386782,
    "benefits": 3017118,
    "other": 16732997,
    "total": 25136897
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1129190,
    "benefits": 469665,
    "other": 889910,
    "total": 2488765
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1129190,
    "benefits": 469665,
    "other": 889910,
    "total": 2488765
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 612542,
    "benefits": 372929,
    "other": 979678,
    "total": 1965149
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 442989,
    "benefits": 267549,
    "other": 66410,
    "total": 776948
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 60120,
    "other": 366400,
    "total": 426520
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 169553,
    "benefits": 45260,
    "other": 546868,
    "total": 761681
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 426493,
    "benefits": 196908,
    "other": 575497,
    "total": 1198898
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 426493,
    "benefits": 196908,
    "other": 575497,
    "total": 1198898
   },
   {
    "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": 234423,
    "benefits": 108730,
    "other": 350853,
    "total": 694006
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 141497,
    "benefits": 61221,
    "other": 5274,
    "total": 207992
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 22990,
    "benefits": 11935,
    "other": 70248,
    "total": 105173
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 69936,
    "benefits": 35574,
    "other": 275331,
    "total": 380841
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 70140,
    "benefits": 5805,
    "other": 544892,
    "total": 620837
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 432198,
    "total": 432198
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 70140,
    "benefits": 5805,
    "other": 112694,
    "total": 188639
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 3185472,
    "benefits": 1940314,
    "other": 12075736,
    "total": 17201522
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 3185472,
    "benefits": 1940314,
    "other": 3203000,
    "total": 8328786
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 8872736,
    "total": 8872736
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 1307706,
    "total": 1307706
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 1307706,
    "total": 1307706
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 432319,
    "total": 432319
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 432319,
    "total": 432319
   },
   {
    "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": 5658260,
    "benefits": 3094351,
    "other": 17156591,
    "total": 25909202
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1184414,
    "benefits": 479822,
    "other": 918259,
    "total": 2582495
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1184414,
    "benefits": 479822,
    "other": 918259,
    "total": 2582495
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 616629,
    "benefits": 378544,
    "other": 984723,
    "total": 1979896
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 434627,
    "benefits": 271310,
    "other": 37334,
    "total": 743271
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 60656,
    "other": 375975,
    "total": 436631
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 182002,
    "benefits": 46578,
    "other": 571414,
    "total": 799994
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 441805,
    "benefits": 200715,
    "other": 592603,
    "total": 1235123
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 441805,
    "benefits": 200715,
    "other": 592603,
    "total": 1235123
   },
   {
    "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": 252631,
    "benefits": 111625,
    "other": 354438,
    "total": 718694
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 157527,
    "benefits": 63280,
    "other": 8032,
    "total": 228839
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 21896,
    "benefits": 12014,
    "other": 66062,
    "total": 99972
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 73208,
    "benefits": 36331,
    "other": 280344,
    "total": 389883
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 75392,
    "benefits": 6082,
    "other": 573209,
    "total": 654683
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 443059,
    "total": 443059
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 75392,
    "benefits": 6082,
    "other": 130150,
    "total": 211624
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 4729744,
    "benefits": 1714756,
    "other": 10687615,
    "total": 17132115
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 4729744,
    "benefits": 1714756,
    "other": 2146098,
    "total": 8590598
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 8541517,
    "total": 8541517
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 1249779,
    "total": 1249779
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 1249779,
    "total": 1249779
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 650307,
    "total": 650307
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 650307,
    "total": 650307
   },
   {
    "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": 7300615,
    "benefits": 2891544,
    "other": 16010933,
    "total": 26203092
   }
  ]
 }
}