{
 "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 Stafford, including department detail.",
  "town_scope_note": "`function_totals` covers Stafford 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 Stafford: 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": "Stafford",
 "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": 1129692,
    "benefits": 1807146,
    "other": 1296224,
    "total": 4233062
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1129692,
    "benefits": 1807146,
    "other": 1296224,
    "total": 4233062
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 520225,
    "benefits": 0,
    "other": 1515667,
    "total": 2035892
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 415997,
    "benefits": 0,
    "other": 462198,
    "total": 878195
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 69556,
    "benefits": 0,
    "other": 514823,
    "total": 584379
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 34672,
    "benefits": 0,
    "other": 538646,
    "total": 573318
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1095762,
    "benefits": 0,
    "other": 1598082,
    "total": 2693844
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 914134,
    "benefits": 0,
    "other": 1246669,
    "total": 2160803
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 181628,
    "benefits": 0,
    "other": 300742,
    "total": 482370
   },
   {
    "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": 50671,
    "total": 50671
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 222473,
    "benefits": 0,
    "other": 139136,
    "total": 361609
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 127274,
    "benefits": 0,
    "other": 75378,
    "total": 202652
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 95199,
    "benefits": 0,
    "other": 44050,
    "total": 139249
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 19708,
    "total": 19708
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 641715,
    "benefits": 134335,
    "other": 347635,
    "total": 1123685
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 326308,
    "benefits": 134335,
    "other": 70889,
    "total": 531532
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 315407,
    "benefits": 0,
    "other": 207453,
    "total": 522860
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 69293,
    "total": 69293
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 16279899,
    "benefits": 4782773,
    "other": 12992604,
    "total": 34055276
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 16279899,
    "benefits": 4782773,
    "other": 12992604,
    "total": 34055276
   },
   {
    "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": 2206112,
    "total": 2206112
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 2206112,
    "total": 2206112
   },
   {
    "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": 177882,
    "benefits": 0,
    "other": 173973,
    "total": 351855
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 177882,
    "benefits": 0,
    "other": 173973,
    "total": 351855
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 20067648,
    "benefits": 6724254,
    "other": 20269433,
    "total": 47061335
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1021604,
    "benefits": 2131930,
    "other": 888522,
    "total": 4042056
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1021604,
    "benefits": 2131930,
    "other": 888522,
    "total": 4042056
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 621633,
    "benefits": 0,
    "other": 1439714,
    "total": 2061347
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 515199,
    "benefits": 0,
    "other": 318494,
    "total": 833693
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 67179,
    "benefits": 0,
    "other": 535839,
    "total": 603018
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 39255,
    "benefits": 0,
    "other": 585381,
    "total": 624636
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1394871,
    "benefits": 16857,
    "other": 1817996,
    "total": 3229724
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1028092,
    "benefits": 16857,
    "other": 1176941,
    "total": 2221890
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 187933,
    "benefits": 0,
    "other": 325160,
    "total": 513093
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 178846,
    "benefits": 0,
    "other": 315895,
    "total": 494741
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 341512,
    "benefits": 0,
    "other": 181647,
    "total": 523159
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 55775,
    "total": 55775
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 341512,
    "benefits": 0,
    "other": 125872,
    "total": 467384
   },
   {
    "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": 633941,
    "benefits": 116598,
    "other": 277639,
    "total": 1028178
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 310168,
    "benefits": 116598,
    "other": 95754,
    "total": 522520
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 323773,
    "benefits": 0,
    "other": 167230,
    "total": 491003
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 14655,
    "total": 14655
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 16437384,
    "benefits": 4792649,
    "other": 14813192,
    "total": 36043225
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 16437384,
    "benefits": 4792649,
    "other": 14813192,
    "total": 36043225
   },
   {
    "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": 1249393,
    "total": 1249393
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 1249393,
    "total": 1249393
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 35222,
    "total": 35222
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 35222,
    "total": 35222
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 18715,
    "total": 18715
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 18715,
    "total": 18715
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 20450945,
    "benefits": 7058034,
    "other": 20722040,
    "total": 48231019
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1215089,
    "benefits": 2119204,
    "other": 726282,
    "total": 4060575
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1215089,
    "benefits": 2119204,
    "other": 726282,
    "total": 4060575
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 637988,
    "benefits": 0,
    "other": 1278085,
    "total": 1916073
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 527393,
    "benefits": 0,
    "other": 278569,
    "total": 805962
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 73371,
    "benefits": 0,
    "other": 423985,
    "total": 497356
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 37224,
    "benefits": 0,
    "other": 575531,
    "total": 612755
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1431098,
    "benefits": 23320,
    "other": 2008584,
    "total": 3463002
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1052078,
    "benefits": 23320,
    "other": 1245844,
    "total": 2321242
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 199713,
    "benefits": 0,
    "other": 345038,
    "total": 544751
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 179307,
    "benefits": 0,
    "other": 417702,
    "total": 597009
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 403552,
    "benefits": 0,
    "other": 177430,
    "total": 580982
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 55779,
    "total": 55779
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 403552,
    "benefits": 0,
    "other": 106239,
    "total": 509791
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 15412,
    "total": 15412
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 675606,
    "benefits": 118283,
    "other": 298433,
    "total": 1092322
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 321705,
    "benefits": 118283,
    "other": 78590,
    "total": 518578
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 353901,
    "benefits": 0,
    "other": 219843,
    "total": 573744
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 16403657,
    "benefits": 8310889,
    "other": 8099141,
    "total": 32813687
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 16403657,
    "benefits": 8310889,
    "other": 8099141,
    "total": 32813687
   },
   {
    "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": 1960749,
    "total": 1960749
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 1960749,
    "total": 1960749
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 646655,
    "total": 646655
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 646655,
    "total": 646655
   },
   {
    "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": 20766990,
    "benefits": 10571696,
    "other": 15195359,
    "total": 46534045
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1208882,
    "benefits": 2111847,
    "other": 592058,
    "total": 3912787
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1208882,
    "benefits": 2111847,
    "other": 592058,
    "total": 3912787
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 600900,
    "benefits": 0,
    "other": 1637332,
    "total": 2238232
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 490739,
    "benefits": 0,
    "other": 248839,
    "total": 739578
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 73961,
    "benefits": 0,
    "other": 443141,
    "total": 517102
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 36200,
    "benefits": 0,
    "other": 945352,
    "total": 981552
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1353568,
    "benefits": 22882,
    "other": 1113701,
    "total": 2490151
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 998544,
    "benefits": 22882,
    "other": 687349,
    "total": 1708775
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 189339,
    "benefits": 0,
    "other": 356412,
    "total": 545751
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 165685,
    "benefits": 0,
    "other": 69940,
    "total": 235625
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 335195,
    "benefits": 0,
    "other": 124052,
    "total": 459247
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 53870,
    "total": 53870
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 335195,
    "benefits": 0,
    "other": 70182,
    "total": 405377
   },
   {
    "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": 819854,
    "benefits": 130241,
    "other": 329963,
    "total": 1280058
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 332643,
    "benefits": 130241,
    "other": 73288,
    "total": 536172
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 381988,
    "benefits": 0,
    "other": 198579,
    "total": 580567
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 105223,
    "benefits": 0,
    "other": 58096,
    "total": 163319
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 17220627,
    "benefits": 4326739,
    "other": 12603811,
    "total": 34151177
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 17220627,
    "benefits": 4326739,
    "other": 12603811,
    "total": 34151177
   },
   {
    "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": 2005723,
    "total": 2005723
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 2005723,
    "total": 2005723
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 769472,
    "total": 769472
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 769472,
    "total": 769472
   },
   {
    "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": 21539026,
    "benefits": 6591709,
    "other": 19176112,
    "total": 47306847
   }
  ]
 }
}