{
 "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 Newtown, including department detail.",
  "town_scope_note": "`function_totals` covers Newtown 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 Newtown: 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": "Newtown",
 "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": 2176301,
    "benefits": 889686,
    "other": 1026658,
    "total": 4092645
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2176301,
    "benefits": 889686,
    "other": 1026658,
    "total": 4092645
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 5568625,
    "benefits": 3021074,
    "other": 1272175,
    "total": 9861874
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4302122,
    "benefits": 2261299,
    "other": 347993,
    "total": 6911414
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 196984,
    "benefits": 350032,
    "other": 680176,
    "total": 1227192
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 1069519,
    "benefits": 409743,
    "other": 244006,
    "total": 1723268
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2891742,
    "benefits": 1291028,
    "other": 4167490,
    "total": 8350260
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2623728,
    "benefits": 1151945,
    "other": 2276013,
    "total": 6051686
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 183266,
    "benefits": 75647,
    "other": 1276589,
    "total": 1535502
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 84748,
    "benefits": 63436,
    "other": 614888,
    "total": 763072
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 274255,
    "benefits": 85491,
    "other": 611632,
    "total": 971378
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 403337,
    "total": 403337
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 208676,
    "benefits": 46855,
    "other": 10318,
    "total": 265849
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 65579,
    "benefits": 38636,
    "other": 197977,
    "total": 302192
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 1317573,
    "benefits": 485000,
    "other": 2071542,
    "total": 3874115
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 1382059,
    "total": 1382059
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1317573,
    "benefits": 485000,
    "other": 509875,
    "total": 2312448
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 179608,
    "total": 179608
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 53524808,
    "benefits": 22489262,
    "other": 12033634,
    "total": 88047704
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 53524808,
    "benefits": 22489262,
    "other": 12033634,
    "total": 88047704
   },
   {
    "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": 9528598,
    "total": 9528598
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 9528598,
    "total": 9528598
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 2555108,
    "total": 2555108
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 2555108,
    "total": 2555108
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 2156159,
    "total": 2156159
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 2156159,
    "total": 2156159
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 65753304,
    "benefits": 28261541,
    "other": 35422996,
    "total": 129437841
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2075789,
    "benefits": 855775,
    "other": 2049633,
    "total": 4981197
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2075789,
    "benefits": 855775,
    "other": 2049633,
    "total": 4981197
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 5636789,
    "benefits": 3164101,
    "other": 1630638,
    "total": 10431528
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4375363,
    "benefits": 2382092,
    "other": 318081,
    "total": 7075536
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 202627,
    "benefits": 385554,
    "other": 694111,
    "total": 1282292
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 1058799,
    "benefits": 396455,
    "other": 618446,
    "total": 2073700
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2987345,
    "benefits": 1307570,
    "other": 5361409,
    "total": 9656324
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2622989,
    "benefits": 1166092,
    "other": 3200137,
    "total": 6989218
   },
   {
    "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": 364356,
    "benefits": 141478,
    "other": 2161272,
    "total": 2667106
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 235673,
    "benefits": 71395,
    "other": 932288,
    "total": 1239356
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 408441,
    "total": 408441
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 235673,
    "benefits": 71395,
    "other": 10418,
    "total": 317486
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 513429,
    "total": 513429
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 1277462,
    "benefits": 515604,
    "other": 2163070,
    "total": 3956136
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 1423908,
    "total": 1423908
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1206262,
    "benefits": 479595,
    "other": 535202,
    "total": 2221059
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 71200,
    "benefits": 36009,
    "other": 203960,
    "total": 311169
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 51116574,
    "benefits": 21723500,
    "other": 15710860,
    "total": 88550934
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 51116574,
    "benefits": 21723500,
    "other": 15710860,
    "total": 88550934
   },
   {
    "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": 9633542,
    "total": 9633542
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 9633542,
    "total": 9633542
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 1099146,
    "total": 1099146
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 1099146,
    "total": 1099146
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 389224,
    "benefits": 164981,
    "other": 129040,
    "total": 683245
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 389224,
    "benefits": 164981,
    "other": 129040,
    "total": 683245
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 63718856,
    "benefits": 27802926,
    "other": 38709626,
    "total": 130231408
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2216145,
    "benefits": 1050958,
    "other": 2170923,
    "total": 5438026
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2216145,
    "benefits": 1050958,
    "other": 2170923,
    "total": 5438026
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 5643825,
    "benefits": 3333042,
    "other": 1618597,
    "total": 10595464
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4306348,
    "benefits": 2537983,
    "other": 195562,
    "total": 7039893
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 207381,
    "benefits": 391865,
    "other": 633345,
    "total": 1232591
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 1130096,
    "benefits": 403194,
    "other": 789690,
    "total": 2322980
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3168740,
    "benefits": 1331469,
    "other": 6293797,
    "total": 10794006
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2736702,
    "benefits": 1188229,
    "other": 3794356,
    "total": 7719287
   },
   {
    "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": 432038,
    "benefits": 143240,
    "other": 2499441,
    "total": 3074719
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 311538,
    "benefits": 232546,
    "other": 1395677,
    "total": 1939761
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 123241,
    "other": 290000,
    "total": 413241
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 240421,
    "benefits": 73035,
    "other": 11514,
    "total": 324970
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 71117,
    "benefits": 36270,
    "other": 1094163,
    "total": 1201550
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 1307827,
    "benefits": 510834,
    "other": 1948085,
    "total": 3766746
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 27013,
    "other": 1381000,
    "total": 1408013
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1307827,
    "benefits": 483821,
    "other": 567085,
    "total": 2358733
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 51681024,
    "benefits": 31726357,
    "other": 5993367,
    "total": 89400748
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 51681024,
    "benefits": 31726357,
    "other": 5993367,
    "total": 89400748
   },
   {
    "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": 10023251,
    "total": 10023251
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 10023251,
    "total": 10023251
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 834007,
    "total": 834007
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 834007,
    "total": 834007
   },
   {
    "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": 64329099,
    "benefits": 38185206,
    "other": 30277704,
    "total": 132792009
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1945807,
    "benefits": 793649,
    "other": 958416,
    "total": 3697872
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1945807,
    "benefits": 793649,
    "other": 958416,
    "total": 3697872
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 5841939,
    "benefits": 3371261,
    "other": 1484620,
    "total": 10697820
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4465902,
    "benefits": 2546571,
    "other": 211353,
    "total": 7223826
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 215195,
    "benefits": 425247,
    "other": 650345,
    "total": 1290787
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 1160842,
    "benefits": 399443,
    "other": 622922,
    "total": 2183207
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3094178,
    "benefits": 1340113,
    "other": 4472885,
    "total": 8907176
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2837125,
    "benefits": 1199273,
    "other": 2275204,
    "total": 6311602
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 202603,
    "benefits": 85175,
    "other": 1496095,
    "total": 1783873
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 54450,
    "benefits": 55665,
    "other": 701586,
    "total": 811701
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 246543,
    "benefits": 394033,
    "other": 662196,
    "total": 1302772
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 302882,
    "total": 302882
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 246543,
    "benefits": 82282,
    "other": 13369,
    "total": 342194
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 311751,
    "other": 345945,
    "total": 657696
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 1529501,
    "benefits": 504408,
    "other": 2275407,
    "total": 4309316
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 1381469,
    "total": 1381469
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1446578,
    "benefits": 504408,
    "other": 683510,
    "total": 2634496
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 82923,
    "benefits": 0,
    "other": 210428,
    "total": 293351
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 53194333,
    "benefits": 23639057,
    "other": 17048161,
    "total": 93881551
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 53194333,
    "benefits": 23639057,
    "other": 17048161,
    "total": 93881551
   },
   {
    "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": 9900011,
    "total": 9900011
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 9900011,
    "total": 9900011
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 3164786,
    "total": 3164786
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 3164786,
    "total": 3164786
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 2354444,
    "total": 2354444
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 2354444,
    "total": 2354444
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 65852301,
    "benefits": 30042521,
    "other": 42320926,
    "total": 138215748
   }
  ]
 }
}