{
 "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 Hampton, including department detail.",
  "town_scope_note": "`function_totals` covers Hampton 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 Hampton: 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": "Hampton",
 "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": 199271,
    "benefits": 123396,
    "other": 143743,
    "total": 466410
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 199271,
    "benefits": 123396,
    "other": 143743,
    "total": 466410
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 40766,
    "benefits": 0,
    "other": 127259,
    "total": 168025
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 8868,
    "benefits": 0,
    "other": 68375,
    "total": 77243
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 31898,
    "benefits": 0,
    "other": 58884,
    "total": 90782
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 194559,
    "benefits": 0,
    "other": 506244,
    "total": 700803
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 166590,
    "benefits": 0,
    "other": 386959,
    "total": 553549
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 27969,
    "benefits": 0,
    "other": 106855,
    "total": 134824
   },
   {
    "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": 12430,
    "total": 12430
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1000,
    "benefits": 0,
    "other": 16984,
    "total": 17984
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 10681,
    "total": 10681
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 1000,
    "benefits": 0,
    "other": 0,
    "total": 1000
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 6303,
    "total": 6303
   },
   {
    "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": 1303746,
    "benefits": 223303,
    "other": 2067342,
    "total": 3594391
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 1303746,
    "benefits": 223303,
    "other": 571555,
    "total": 2098604
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 1495787,
    "total": 1495787
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 3811,
    "total": 3811
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 3811,
    "total": 3811
   },
   {
    "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": 606691,
    "total": 606691
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 606691,
    "total": 606691
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 1739342,
    "benefits": 346699,
    "other": 3472074,
    "total": 5558115
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 182345,
    "benefits": 125039,
    "other": 847457,
    "total": 1154841
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 182345,
    "benefits": 125039,
    "other": 847457,
    "total": 1154841
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 40328,
    "benefits": 0,
    "other": 199018,
    "total": 239346
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 9009,
    "benefits": 0,
    "other": 105589,
    "total": 114598
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 31319,
    "benefits": 0,
    "other": 93429,
    "total": 124748
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 201716,
    "benefits": 0,
    "other": 427317,
    "total": 629033
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 173110,
    "benefits": 0,
    "other": 305916,
    "total": 479026
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 28606,
    "benefits": 0,
    "other": 109688,
    "total": 138294
   },
   {
    "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": 11713,
    "total": 11713
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1000,
    "benefits": 0,
    "other": 18463,
    "total": 19463
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 10655,
    "total": 10655
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 1000,
    "benefits": 0,
    "other": 1204,
    "total": 2204
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 6604,
    "total": 6604
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 0,
    "benefits": 0,
    "other": 38580,
    "total": 38580
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 34680,
    "total": 34680
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 3900,
    "total": 3900
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 1101188,
    "benefits": 224986,
    "other": 2190397,
    "total": 3516571
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 1101188,
    "benefits": 224986,
    "other": 677890,
    "total": 2004064
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 1512507,
    "total": 1512507
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 2224,
    "total": 2224
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 2224,
    "total": 2224
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 15752,
    "total": 15752
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 15752,
    "total": 15752
   },
   {
    "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": 1526577,
    "benefits": 350025,
    "other": 3739208,
    "total": 5615810
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 183569,
    "benefits": 115352,
    "other": 457871,
    "total": 756792
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 183569,
    "benefits": 115352,
    "other": 457871,
    "total": 756792
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 37696,
    "benefits": 0,
    "other": 198541,
    "total": 236237
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 9189,
    "benefits": 0,
    "other": 125145,
    "total": 134334
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 28507,
    "benefits": 0,
    "other": 73396,
    "total": 101903
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 203530,
    "benefits": 0,
    "other": 498431,
    "total": 701961
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 174243,
    "benefits": 0,
    "other": 392288,
    "total": 566531
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 29287,
    "benefits": 0,
    "other": 106143,
    "total": 135430
   },
   {
    "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": 0,
    "benefits": 0,
    "other": 23695,
    "total": 23695
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 13894,
    "total": 13894
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 9801,
    "total": 9801
   },
   {
    "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": 0,
    "benefits": 0,
    "other": 34680,
    "total": 34680
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 34680,
    "total": 34680
   },
   {
    "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": 1151856,
    "benefits": 207374,
    "other": 2145029,
    "total": 3504259
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 1151856,
    "benefits": 207374,
    "other": 568390,
    "total": 1927620
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 1576639,
    "total": 1576639
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 99010,
    "total": 99010
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 99010,
    "total": 99010
   },
   {
    "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": 1576651,
    "benefits": 322726,
    "other": 3457257,
    "total": 5356634
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 194864,
    "benefits": 22321,
    "other": 464055,
    "total": 681240
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 194864,
    "benefits": 22321,
    "other": 464055,
    "total": 681240
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 30253,
    "benefits": 3109,
    "other": 460458,
    "total": 493820
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 9557,
    "benefits": 731,
    "other": 372585,
    "total": 382873
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 20696,
    "benefits": 2378,
    "other": 87873,
    "total": 110947
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 215434,
    "benefits": 93532,
    "other": 314634,
    "total": 623600
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 185055,
    "benefits": 90580,
    "other": 195251,
    "total": 470886
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 30379,
    "benefits": 2952,
    "other": 119383,
    "total": 152714
   },
   {
    "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": 0,
    "benefits": 0,
    "other": 19696,
    "total": 19696
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 13467,
    "total": 13467
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 1245,
    "total": 1245
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 4984,
    "total": 4984
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 0,
    "benefits": 0,
    "other": 34680,
    "total": 34680
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 34680,
    "total": 34680
   },
   {
    "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": 1143794,
    "benefits": 197107,
    "other": 2218884,
    "total": 3559785
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 1143794,
    "benefits": 197107,
    "other": 642686,
    "total": 1983587
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 1576198,
    "total": 1576198
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 74728,
    "total": 74728
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 74728,
    "total": 74728
   },
   {
    "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": 1584345,
    "benefits": 316069,
    "other": 3587135,
    "total": 5487549
   }
  ]
 }
}