{
 "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 Bethany, including department detail.",
  "town_scope_note": "`function_totals` covers Bethany 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 Bethany: 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": "Bethany",
 "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": 0,
    "benefits": 0,
    "other": 1353328,
    "total": 1353328
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 0,
    "benefits": 0,
    "other": 1353328,
    "total": 1353328
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 225004,
    "benefits": 0,
    "other": 507627,
    "total": 732631
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 225004,
    "benefits": 0,
    "other": 0,
    "total": 225004
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 453848,
    "total": 453848
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 53779,
    "total": 53779
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 566344,
    "benefits": 0,
    "other": 1987652,
    "total": 2553996
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 566344,
    "benefits": 0,
    "other": 1537620,
    "total": 2103964
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 450032,
    "total": 450032
   },
   {
    "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": 496385,
    "total": 496385
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 33807,
    "total": 33807
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 462578,
    "total": 462578
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 0,
    "benefits": 0,
    "other": 481255,
    "total": 481255
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 351186,
    "total": 351186
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 130069,
    "total": 130069
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 15358565,
    "total": 15358565
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 6796943,
    "total": 6796943
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 8561622,
    "total": 8561622
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 719546,
    "total": 719546
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 719546,
    "total": 719546
   },
   {
    "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": 956381,
    "other": 0,
    "total": 956381
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 956381,
    "other": 0,
    "total": 956381
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 791348,
    "benefits": 956381,
    "other": 20904358,
    "total": 22652087
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 706073,
    "benefits": 0,
    "other": 607928,
    "total": 1314001
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 706073,
    "benefits": 0,
    "other": 607928,
    "total": 1314001
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 266962,
    "benefits": 0,
    "other": 459412,
    "total": 726374
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 196484,
    "benefits": 0,
    "other": 9386,
    "total": 205870
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 243878,
    "total": 243878
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 70478,
    "benefits": 0,
    "other": 206148,
    "total": 276626
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 583409,
    "benefits": 0,
    "other": 1535815,
    "total": 2119224
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 551527,
    "benefits": 0,
    "other": 853152,
    "total": 1404679
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 31882,
    "benefits": 0,
    "other": 390667,
    "total": 422549
   },
   {
    "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": 291996,
    "total": 291996
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 52432,
    "benefits": 0,
    "other": 793315,
    "total": 845747
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 35065,
    "total": 35065
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 52432,
    "benefits": 0,
    "other": 31349,
    "total": 83781
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 726901,
    "total": 726901
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 223637,
    "benefits": 0,
    "other": 433486,
    "total": 657123
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 383344,
    "total": 383344
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 223637,
    "benefits": 0,
    "other": 34289,
    "total": 257926
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 15853,
    "total": 15853
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 18035074,
    "total": 18035074
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 9034343,
    "total": 9034343
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 9000731,
    "total": 9000731
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 894613,
    "total": 894613
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 894613,
    "total": 894613
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 242840,
    "total": 242840
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 242840,
    "total": 242840
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 948687,
    "total": 948687
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 948687,
    "total": 948687
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 1832513,
    "benefits": 0,
    "other": 23951170,
    "total": 25783683
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 668567,
    "benefits": 853006,
    "other": 859712,
    "total": 2381285
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 668567,
    "benefits": 853006,
    "other": 859712,
    "total": 2381285
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 206210,
    "benefits": 0,
    "other": 537113,
    "total": 743323
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 206210,
    "benefits": 0,
    "other": 7477,
    "total": 213687
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 470422,
    "total": 470422
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 59214,
    "total": 59214
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 614191,
    "benefits": 0,
    "other": 2048499,
    "total": 2662690
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 559768,
    "benefits": 0,
    "other": 1266993,
    "total": 1826761
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 54423,
    "benefits": 0,
    "other": 426251,
    "total": 480674
   },
   {
    "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": 355255,
    "total": 355255
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 64728,
    "benefits": 0,
    "other": 126431,
    "total": 191159
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 36435,
    "total": 36435
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 64728,
    "benefits": 0,
    "other": 64662,
    "total": 129390
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 25334,
    "total": 25334
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 311243,
    "benefits": 0,
    "other": 345992,
    "total": 657235
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 306648,
    "total": 306648
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 311243,
    "benefits": 0,
    "other": 31837,
    "total": 343080
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 7507,
    "total": 7507
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 16023644,
    "total": 16023644
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 7040036,
    "total": 7040036
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 8983608,
    "total": 8983608
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 785368,
    "total": 785368
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 785368,
    "total": 785368
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 143615,
    "total": 143615
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 143615,
    "total": 143615
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 749758,
    "total": 749758
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 749758,
    "total": 749758
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 1864939,
    "benefits": 853006,
    "other": 21620132,
    "total": 24338077
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 793440,
    "benefits": 899261,
    "other": 921127,
    "total": 2613828
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 793440,
    "benefits": 899261,
    "other": 921127,
    "total": 2613828
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 237612,
    "benefits": 0,
    "other": 571852,
    "total": 809464
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 191435,
    "benefits": 0,
    "other": 34015,
    "total": 225450
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 444572,
    "total": 444572
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 46177,
    "benefits": 0,
    "other": 93265,
    "total": 139442
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 594309,
    "benefits": 0,
    "other": 1813498,
    "total": 2407807
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 531664,
    "benefits": 0,
    "other": 1105572,
    "total": 1637236
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 62645,
    "benefits": 0,
    "other": 425447,
    "total": 488092
   },
   {
    "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": 282479,
    "total": 282479
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 79857,
    "benefits": 0,
    "other": 116198,
    "total": 196055
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 36528,
    "total": 36528
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 79857,
    "benefits": 0,
    "other": 34133,
    "total": 113990
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 45537,
    "total": 45537
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 301467,
    "benefits": 0,
    "other": 446188,
    "total": 747655
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 312148,
    "total": 312148
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 301467,
    "benefits": 0,
    "other": 0,
    "total": 301467
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 134040,
    "total": 134040
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 17304829,
    "total": 17304829
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 8513459,
    "total": 8513459
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 8791370,
    "total": 8791370
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 1048805,
    "total": 1048805
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 1048805,
    "total": 1048805
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 51727,
    "total": 51727
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 51727,
    "total": 51727
   },
   {
    "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": 2006685,
    "benefits": 899261,
    "other": 22274224,
    "total": 25180170
   }
  ]
 }
}