{
 "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 Berlin, including department detail.",
  "town_scope_note": "`function_totals` covers Berlin 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 Berlin: 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": "Berlin",
 "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": 1781412,
    "benefits": 2505587,
    "other": 1580983,
    "total": 5867982
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1781412,
    "benefits": 2505587,
    "other": 1580983,
    "total": 5867982
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 5893524,
    "benefits": 2184470,
    "other": 979246,
    "total": 9057240
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 5341376,
    "benefits": 1912419,
    "other": 304890,
    "total": 7558685
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 237572,
    "benefits": 145602,
    "other": 289377,
    "total": 672551
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 314576,
    "benefits": 126449,
    "other": 384979,
    "total": 826004
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2853060,
    "benefits": 1268271,
    "other": 3369675,
    "total": 7491006
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1022812,
    "benefits": 524961,
    "other": 328027,
    "total": 1875800
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 1685373,
    "total": 1685373
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 1830248,
    "benefits": 743310,
    "other": 1356275,
    "total": 3929833
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1507151,
    "benefits": 522153,
    "other": 363323,
    "total": 2392627
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 129546,
    "total": 129546
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 164628,
    "benefits": 81477,
    "other": 29979,
    "total": 276084
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1342523,
    "benefits": 440676,
    "other": 203798,
    "total": 1986997
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 2089594,
    "benefits": 742079,
    "other": 1107014,
    "total": 3938687
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 646541,
    "benefits": 202128,
    "other": 191963,
    "total": 1040632
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 302794,
    "benefits": 82899,
    "other": 57665,
    "total": 443358
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 1140259,
    "benefits": 457052,
    "other": 857386,
    "total": 2454697
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 31394973,
    "benefits": 7812250,
    "other": 15179730,
    "total": 54386953
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 31394973,
    "benefits": 7812250,
    "other": 15179730,
    "total": 54386953
   },
   {
    "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": 8868818,
    "total": 8868818
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 8868818,
    "total": 8868818
   },
   {
    "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": 534386,
    "benefits": 205956,
    "other": 39906,
    "total": 780248
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 534386,
    "benefits": 205956,
    "other": 39906,
    "total": 780248
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 46054100,
    "benefits": 15240766,
    "other": 31488695,
    "total": 92783561
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1820968,
    "benefits": 2853295,
    "other": 2246436,
    "total": 6920699
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1820968,
    "benefits": 2853295,
    "other": 2246436,
    "total": 6920699
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 6216183,
    "benefits": 2206693,
    "other": 1180842,
    "total": 9603718
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 5540405,
    "benefits": 1959944,
    "other": 513190,
    "total": 8013539
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 360348,
    "benefits": 118540,
    "other": 280308,
    "total": 759196
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 315430,
    "benefits": 128209,
    "other": 387344,
    "total": 830983
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2439830,
    "benefits": 1114114,
    "other": 3512352,
    "total": 7066296
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1066083,
    "benefits": 539639,
    "other": 370970,
    "total": 1976692
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 1673740,
    "total": 1673740
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 1373747,
    "benefits": 574475,
    "other": 1467642,
    "total": 3415864
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1487490,
    "benefits": 551766,
    "other": 379794,
    "total": 2419050
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 148576,
    "total": 148576
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 172074,
    "benefits": 83110,
    "other": 29156,
    "total": 284340
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1315416,
    "benefits": 468656,
    "other": 202062,
    "total": 1986134
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 2105770,
    "benefits": 786866,
    "other": 1173775,
    "total": 4066411
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 672128,
    "benefits": 208576,
    "other": 194444,
    "total": 1075148
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 271291,
    "benefits": 75491,
    "other": 41547,
    "total": 388329
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 1162351,
    "benefits": 502799,
    "other": 937784,
    "total": 2602934
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 33033541,
    "benefits": 7612594,
    "other": 15835462,
    "total": 56481597
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 33033541,
    "benefits": 7612594,
    "other": 15835462,
    "total": 56481597
   },
   {
    "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": 8246859,
    "total": 8246859
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 8246859,
    "total": 8246859
   },
   {
    "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": 595959,
    "benefits": 240672,
    "other": 51203,
    "total": 887834
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 595959,
    "benefits": 240672,
    "other": 51203,
    "total": 887834
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 47699741,
    "benefits": 15366000,
    "other": 32626723,
    "total": 95692464
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2034127,
    "benefits": 6201972,
    "other": 1782154,
    "total": 10018253
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2034127,
    "benefits": 6201972,
    "other": 1782154,
    "total": 10018253
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 6633168,
    "benefits": 2307629,
    "other": 1017749,
    "total": 9958546
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 5927892,
    "benefits": 2061898,
    "other": 311203,
    "total": 8300993
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 391586,
    "benefits": 110271,
    "other": 301351,
    "total": 803208
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 313690,
    "benefits": 135460,
    "other": 405195,
    "total": 854345
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2497486,
    "benefits": 1146661,
    "other": 3507675,
    "total": 7151822
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1075635,
    "benefits": 543645,
    "other": 361628,
    "total": 1980908
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 1612309,
    "total": 1612309
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 1421851,
    "benefits": 603016,
    "other": 1533738,
    "total": 3558605
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1390440,
    "benefits": 507010,
    "other": 321908,
    "total": 2219358
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 136268,
    "total": 136268
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 189420,
    "benefits": 87318,
    "other": 32567,
    "total": 309305
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1201020,
    "benefits": 419692,
    "other": 153073,
    "total": 1773785
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 2270554,
    "benefits": 864592,
    "other": 1272584,
    "total": 4407730
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 707836,
    "benefits": 213263,
    "other": 223665,
    "total": 1144764
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 391712,
    "benefits": 91317,
    "other": 53519,
    "total": 536548
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 1171006,
    "benefits": 560012,
    "other": 995400,
    "total": 2726418
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 34655423,
    "benefits": 7982362,
    "other": 16622514,
    "total": 59260299
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 34655423,
    "benefits": 7982362,
    "other": 16622514,
    "total": 59260299
   },
   {
    "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": 8124388,
    "total": 8124388
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 8124388,
    "total": 8124388
   },
   {
    "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": 662969,
    "benefits": 283562,
    "other": 86146,
    "total": 1032677
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 662969,
    "benefits": 283562,
    "other": 86146,
    "total": 1032677
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 50144167,
    "benefits": 19293788,
    "other": 32735118,
    "total": 102173073
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2101162,
    "benefits": 967721,
    "other": 1980893,
    "total": 5049776
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2101162,
    "benefits": 967721,
    "other": 1980893,
    "total": 5049776
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 6698671,
    "benefits": 2390434,
    "other": 1013980,
    "total": 10103085
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 5989390,
    "benefits": 2159631,
    "other": 300708,
    "total": 8449729
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 379620,
    "benefits": 113302,
    "other": 296113,
    "total": 789035
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 329661,
    "benefits": 117501,
    "other": 417159,
    "total": 864321
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2613148,
    "benefits": 1240263,
    "other": 3783598,
    "total": 7637009
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1102954,
    "benefits": 578518,
    "other": 349450,
    "total": 2030922
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 1808838,
    "total": 1808838
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 1510194,
    "benefits": 661745,
    "other": 1625310,
    "total": 3797249
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1395556,
    "benefits": 531171,
    "other": 353467,
    "total": 2280194
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 142490,
    "total": 142490
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 205224,
    "benefits": 89880,
    "other": 39872,
    "total": 334976
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1190332,
    "benefits": 441291,
    "other": 171105,
    "total": 1802728
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 2388547,
    "benefits": 860573,
    "other": 1355851,
    "total": 4604971
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 748604,
    "benefits": 232989,
    "other": 254890,
    "total": 1236483
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 387728,
    "benefits": 89982,
    "other": 58633,
    "total": 536343
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 1252215,
    "benefits": 537602,
    "other": 1042328,
    "total": 2832145
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 35290987,
    "benefits": 9167913,
    "other": 17136668,
    "total": 61595568
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 35290987,
    "benefits": 9167913,
    "other": 17136668,
    "total": 61595568
   },
   {
    "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": 7901950,
    "total": 7901950
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 7901950,
    "total": 7901950
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 1000000,
    "total": 1000000
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 1000000,
    "total": 1000000
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 758702,
    "benefits": 339875,
    "other": 97679,
    "total": 1196256
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 758702,
    "benefits": 339875,
    "other": 97679,
    "total": 1196256
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 51246773,
    "benefits": 15497950,
    "other": 34624086,
    "total": 101368809
   }
  ]
 }
}