{
 "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 Farmington, including department detail.",
  "town_scope_note": "`function_totals` covers Farmington 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 Farmington: 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": "Farmington",
 "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": 2404002,
    "benefits": 863454,
    "other": 4171392,
    "total": 7438848
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2404002,
    "benefits": 863454,
    "other": 4171392,
    "total": 7438848
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 7563733,
    "benefits": 2837064,
    "other": 2629976,
    "total": 13030773
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 5477008,
    "benefits": 2054034,
    "other": 710773,
    "total": 8241815
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 785808,
    "benefits": 295055,
    "other": 810288,
    "total": 1891151
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 1300917,
    "benefits": 487975,
    "other": 1108915,
    "total": 2897807
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3111711,
    "benefits": 2302206,
    "other": 1332831,
    "total": 6746748
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2622106,
    "benefits": 1943934,
    "other": 1292433,
    "total": 5858473
   },
   {
    "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": 489605,
    "benefits": 358272,
    "other": 40398,
    "total": 888275
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 522745,
    "benefits": 185021,
    "other": 262946,
    "total": 970712
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 522745,
    "benefits": 185021,
    "other": 229667,
    "total": 937433
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 33279,
    "total": 33279
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 45601208,
    "benefits": 23125688,
    "other": 10174632,
    "total": 78901528
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 45601208,
    "benefits": 23125688,
    "other": 10174632,
    "total": 78901528
   },
   {
    "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": 8550343,
    "total": 8550343
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 8550343,
    "total": 8550343
   },
   {
    "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": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 59203399,
    "benefits": 29313433,
    "other": 27122120,
    "total": 115638952
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2455658,
    "benefits": 1387098,
    "other": 4201886,
    "total": 8044642
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2455658,
    "benefits": 1387098,
    "other": 4201886,
    "total": 8044642
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 7801129,
    "benefits": 4408421,
    "other": 2576500,
    "total": 14786050
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 5623854,
    "benefits": 3180760,
    "other": 684089,
    "total": 9488703
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 962848,
    "benefits": 542084,
    "other": 1725847,
    "total": 3230779
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 1214427,
    "benefits": 685577,
    "other": 166564,
    "total": 2066568
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3270379,
    "benefits": 1849465,
    "other": 1643666,
    "total": 6763510
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2765100,
    "benefits": 1562478,
    "other": 1617309,
    "total": 5944887
   },
   {
    "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": 505279,
    "benefits": 286987,
    "other": 26357,
    "total": 818623
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 557734,
    "benefits": 326845,
    "other": 245773,
    "total": 1130352
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 557734,
    "benefits": 326845,
    "other": 222459,
    "total": 1107038
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 23314,
    "total": 23314
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 45592931,
    "benefits": 11419221,
    "other": 21113001,
    "total": 78125153
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 45592931,
    "benefits": 11419221,
    "other": 21113001,
    "total": 78125153
   },
   {
    "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": 8708714,
    "total": 8708714
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 8708714,
    "total": 8708714
   },
   {
    "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": 329000,
    "other": 0,
    "total": 329000
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 329000,
    "other": 0,
    "total": 329000
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 59677831,
    "benefits": 19720050,
    "other": 38489540,
    "total": 117887421
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2645900,
    "benefits": 1474407,
    "other": 1612145,
    "total": 5732452
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2645900,
    "benefits": 1474407,
    "other": 1612145,
    "total": 5732452
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 8225796,
    "benefits": 4583763,
    "other": 2909905,
    "total": 15719464
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 6085108,
    "benefits": 3390879,
    "other": 809622,
    "total": 10285609
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 1030027,
    "benefits": 573977,
    "other": 1872846,
    "total": 3476850
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 1110661,
    "benefits": 618907,
    "other": 227437,
    "total": 1957005
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3263528,
    "benefits": 1818576,
    "other": 1565830,
    "total": 6647934
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2813586,
    "benefits": 1567849,
    "other": 1535198,
    "total": 5916633
   },
   {
    "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": 449942,
    "benefits": 250727,
    "other": 30632,
    "total": 731301
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 642521,
    "benefits": 358040,
    "other": 270007,
    "total": 1270568
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 642521,
    "benefits": 358040,
    "other": 235220,
    "total": 1235781
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 34787,
    "total": 34787
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 0,
    "benefits": 0,
    "other": 2761568,
    "total": 2761568
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 2761568,
    "total": 2761568
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 47123512,
    "benefits": 25082018,
    "other": 11857612,
    "total": 84063142
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 47123512,
    "benefits": 25082018,
    "other": 11857612,
    "total": 84063142
   },
   {
    "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": 8138187,
    "total": 8138187
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 8138187,
    "total": 8138187
   },
   {
    "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": 61901257,
    "benefits": 33316804,
    "other": 29115254,
    "total": 124333315
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2633128,
    "benefits": 1583408,
    "other": 1592659,
    "total": 5809195
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2633128,
    "benefits": 1583408,
    "other": 1592659,
    "total": 5809195
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 8107100,
    "benefits": 3362666,
    "other": 3063698,
    "total": 14533464
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 6893383,
    "benefits": 2802675,
    "other": 1106331,
    "total": 10802389
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 1060704,
    "benefits": 532053,
    "other": 1928356,
    "total": 3521113
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 153013,
    "benefits": 27938,
    "other": 29011,
    "total": 209962
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3022781,
    "benefits": 1909961,
    "other": 1378952,
    "total": 6311694
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2629371,
    "benefits": 1746071,
    "other": 1341786,
    "total": 5717228
   },
   {
    "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": 393410,
    "benefits": 163890,
    "other": 37166,
    "total": 594466
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 583834,
    "benefits": 216287,
    "other": 279363,
    "total": 1079484
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 583834,
    "benefits": 216287,
    "other": 232167,
    "total": 1032288
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 47196,
    "total": 47196
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 301349,
    "benefits": 79798,
    "other": 2985241,
    "total": 3366388
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 2837235,
    "total": 2837235
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 48938,
    "benefits": 32934,
    "other": 15989,
    "total": 97861
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 252411,
    "benefits": 46864,
    "other": 132017,
    "total": 431292
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 49396340,
    "benefits": 25834110,
    "other": 13564060,
    "total": 88794510
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 49396340,
    "benefits": 25834110,
    "other": 13564060,
    "total": 88794510
   },
   {
    "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": 9077534,
    "total": 9077534
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 9077534,
    "total": 9077534
   },
   {
    "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": 64044532,
    "benefits": 32986230,
    "other": 31941507,
    "total": 128972269
   }
  ]
 }
}