{
 "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 Stamford, including department detail.",
  "town_scope_note": "`function_totals` covers Stamford 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 Stamford: 2023.",
  "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": "Stamford",
 "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": 11100668,
    "benefits": 35653766,
    "other": 54957223,
    "total": 101711657
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 11100668,
    "benefits": 35653766,
    "other": 54957223,
    "total": 101711657
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 70257058,
    "benefits": 1293620,
    "other": 10573027,
    "total": 82123705
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 34085340,
    "benefits": 554787,
    "other": 2022893,
    "total": 36663020
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 33210702,
    "benefits": 488308,
    "other": 5917897,
    "total": 39616907
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 2961016,
    "benefits": 250525,
    "other": 2632237,
    "total": 5843778
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 19072027,
    "benefits": 1445638,
    "other": 14954927,
    "total": 35472592
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 4924942,
    "benefits": 408633,
    "other": 1755444,
    "total": 7089019
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 4663498,
    "benefits": 356146,
    "other": 6239885,
    "total": 11259529
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 514594,
    "benefits": 39060,
    "other": 731401,
    "total": 1285055
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 8968993,
    "benefits": 641799,
    "other": 6228197,
    "total": 15838989
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 2245423,
    "benefits": 176978,
    "other": 561843,
    "total": 2984244
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 293346,
    "benefits": 28559,
    "other": 309500,
    "total": 631405
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 385938,
    "benefits": 29524,
    "other": 65182,
    "total": 480644
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1566139,
    "benefits": 118895,
    "other": 187161,
    "total": 1872195
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 1580552,
    "benefits": 120605,
    "other": 13542267,
    "total": 15243424
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 8630000,
    "total": 8630000
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1580552,
    "benefits": 120605,
    "other": 678601,
    "total": 2379758
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 4233666,
    "total": 4233666
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 172680127,
    "benefits": 45865087,
    "other": 108290951,
    "total": 326836165
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 172680127,
    "benefits": 45865087,
    "other": 108290951,
    "total": 326836165
   },
   {
    "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": 0,
    "total": 0
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "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": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 276935855,
    "benefits": 84555694,
    "other": 202880238,
    "total": 564371787
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 11070701,
    "benefits": 10315864,
    "other": 5526019,
    "total": 26912584
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 11070701,
    "benefits": 10315864,
    "other": 5526019,
    "total": 26912584
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 70670107,
    "benefits": 62151979,
    "other": 10030139,
    "total": 142852225
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 34654981,
    "benefits": 30393083,
    "other": 1735048,
    "total": 66783112
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 33076808,
    "benefits": 28956790,
    "other": 5649403,
    "total": 67683001
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 2938318,
    "benefits": 2802106,
    "other": 2645688,
    "total": 8386112
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 19638075,
    "benefits": 20231572,
    "other": 15979556,
    "total": 55849203
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 5479559,
    "benefits": 5680545,
    "other": 2499817,
    "total": 13659921
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 4572158,
    "benefits": 4710617,
    "other": 6831412,
    "total": 16114187
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 617032,
    "benefits": 635717,
    "other": 652750,
    "total": 1905499
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 8969326,
    "benefits": 9204693,
    "other": 5995577,
    "total": 24169596
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 2410290,
    "benefits": 5018074,
    "other": 535318,
    "total": 7963682
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 379109,
    "benefits": 795099,
    "other": 294206,
    "total": 1468414
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 399180,
    "benefits": 829924,
    "other": 76575,
    "total": 1305679
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 1632001,
    "benefits": 3393051,
    "other": 164537,
    "total": 5189589
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 1533376,
    "benefits": 390434,
    "other": 11061095,
    "total": 12984905
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 8630000,
    "total": 8630000
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1533376,
    "benefits": 390434,
    "other": 581132,
    "total": 2504942
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 1849963,
    "total": 1849963
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 179696422,
    "benefits": 46550442,
    "other": 99354400,
    "total": 325601264
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 179696422,
    "benefits": 46550442,
    "other": 99354400,
    "total": 325601264
   },
   {
    "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": 0,
    "total": 0
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "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": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 285018971,
    "benefits": 144658365,
    "other": 142486527,
    "total": 572163863
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 13131369,
    "benefits": 8938003,
    "other": 7632350,
    "total": 29701722
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 13131369,
    "benefits": 8938003,
    "other": 7632350,
    "total": 29701722
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 72989405,
    "benefits": 65790442,
    "other": 12611874,
    "total": 151391721
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 35941548,
    "benefits": 32318011,
    "other": 2713715,
    "total": 70973274
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 33255847,
    "benefits": 29811849,
    "other": 2546616,
    "total": 65614312
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 3792010,
    "benefits": 3660582,
    "other": 7351543,
    "total": 14804135
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 22091453,
    "benefits": 17948091,
    "other": 19711315,
    "total": 59750859
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 5036042,
    "benefits": 4133407,
    "other": 975434,
    "total": 10144883
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 4703087,
    "benefits": 3787201,
    "other": 7841988,
    "total": 16332276
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 494227,
    "benefits": 399505,
    "other": 686569,
    "total": 1580301
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 11858097,
    "benefits": 9627978,
    "other": 10207324,
    "total": 31693399
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 2562705,
    "benefits": 4727719,
    "other": 659604,
    "total": 7950028
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 2214925,
    "benefits": 4090400,
    "other": 452736,
    "total": 6758061
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 347780,
    "benefits": 637319,
    "other": 190619,
    "total": 1175718
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 16249,
    "total": 16249
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 0,
    "benefits": 262217,
    "other": 13715100,
    "total": 13977317
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 9020000,
    "total": 9020000
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 1048993,
    "total": 1048993
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 262217,
    "other": 3646107,
    "total": 3908324
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 179223293,
    "benefits": 91346412,
    "other": 65975748,
    "total": 336545453
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 179223293,
    "benefits": 91346412,
    "other": 65975748,
    "total": 336545453
   },
   {
    "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": 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": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "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": 289998225,
    "benefits": 189012884,
    "other": 120305991,
    "total": 599317100
   }
  ]
 }
}