{
 "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 Sterling, including department detail.",
  "town_scope_note": "`function_totals` covers Sterling 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 Sterling: 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": "Sterling",
 "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": 351319,
    "benefits": 225945,
    "other": 345571,
    "total": 922835
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 351319,
    "benefits": 225945,
    "other": 345571,
    "total": 922835
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 16216,
    "benefits": 0,
    "other": 0,
    "total": 16216
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 16216,
    "benefits": 0,
    "other": 0,
    "total": 16216
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 130677,
    "benefits": 0,
    "other": 210749,
    "total": 341426
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 130677,
    "benefits": 0,
    "other": 137820,
    "total": 268497
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 72929,
    "total": 72929
   },
   {
    "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": 45530,
    "total": 45530
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "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": 45530,
    "total": 45530
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 119622,
    "benefits": 0,
    "other": 36605,
    "total": 156227
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 49685,
    "benefits": 0,
    "other": 20384,
    "total": 70069
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 69937,
    "benefits": 0,
    "other": 16221,
    "total": 86158
   },
   {
    "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": 9354586,
    "total": 9354586
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 9354586,
    "total": 9354586
   },
   {
    "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": 820500,
    "total": 820500
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 820500,
    "total": 820500
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 623133,
    "total": 623133
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 623133,
    "total": 623133
   },
   {
    "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": 617834,
    "benefits": 225945,
    "other": 11436674,
    "total": 12280453
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 357431,
    "benefits": 0,
    "other": 305013,
    "total": 662444
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 357431,
    "benefits": 0,
    "other": 305013,
    "total": 662444
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 19378,
    "benefits": 0,
    "other": 19700,
    "total": 39078
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 5000,
    "benefits": 0,
    "other": 0,
    "total": 5000
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 14378,
    "benefits": 0,
    "other": 19700,
    "total": 34078
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 141015,
    "benefits": 0,
    "other": 417674,
    "total": 558689
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 141015,
    "benefits": 0,
    "other": 337879,
    "total": 478894
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 76625,
    "total": 76625
   },
   {
    "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": 3170,
    "total": 3170
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 36315,
    "total": 36315
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "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": 36315,
    "total": 36315
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 56333,
    "benefits": 0,
    "other": 128334,
    "total": 184667
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 79380,
    "total": 79380
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 56333,
    "benefits": 0,
    "other": 48954,
    "total": 105287
   },
   {
    "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": 8282801,
    "total": 8282801
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 8282801,
    "total": 8282801
   },
   {
    "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": 806525,
    "total": 806525
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 806525,
    "total": 806525
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 659362,
    "total": 659362
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 659362,
    "total": 659362
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 202016,
    "other": 44355,
    "total": 246371
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 202016,
    "other": 44355,
    "total": 246371
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 574157,
    "benefits": 202016,
    "other": 10700079,
    "total": 11476252
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 369654,
    "benefits": 0,
    "other": 269855,
    "total": 639509
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 369654,
    "benefits": 0,
    "other": 269855,
    "total": 639509
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 22431,
    "benefits": 0,
    "other": 21989,
    "total": 44420
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 22431,
    "benefits": 0,
    "other": 21989,
    "total": 44420
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 160927,
    "benefits": 0,
    "other": 497631,
    "total": 658558
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 160927,
    "benefits": 0,
    "other": 497631,
    "total": 658558
   },
   {
    "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": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 41804,
    "total": 41804
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "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": 41804,
    "total": 41804
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 78614,
    "benefits": 0,
    "other": 102826,
    "total": 181440
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 79380,
    "total": 79380
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 78614,
    "benefits": 0,
    "other": 23446,
    "total": 102060
   },
   {
    "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": 8352620,
    "total": 8352620
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 8352620,
    "total": 8352620
   },
   {
    "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": 792400,
    "total": 792400
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 792400,
    "total": 792400
   },
   {
    "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": 237526,
    "other": 0,
    "total": 237526
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 237526,
    "other": 0,
    "total": 237526
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 631626,
    "benefits": 237526,
    "other": 10079125,
    "total": 10948277
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 415600,
    "benefits": 244115,
    "other": 235453,
    "total": 895168
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 415600,
    "benefits": 244115,
    "other": 235453,
    "total": 895168
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 6000,
    "benefits": 0,
    "other": 37638,
    "total": 43638
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 6000,
    "benefits": 0,
    "other": 37638,
    "total": 43638
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 175615,
    "benefits": 0,
    "other": 475807,
    "total": 651422
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 175615,
    "benefits": 0,
    "other": 475807,
    "total": 651422
   },
   {
    "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": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 44346,
    "total": 44346
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "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": 44346,
    "total": 44346
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 108515,
    "benefits": 0,
    "other": 113002,
    "total": 221517
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 81200,
    "total": 81200
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 108515,
    "benefits": 0,
    "other": 31802,
    "total": 140317
   },
   {
    "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": 9176065,
    "total": 9176065
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 9176065,
    "total": 9176065
   },
   {
    "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": 784700,
    "total": 784700
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 784700,
    "total": 784700
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 201881,
    "total": 201881
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 201881,
    "total": 201881
   },
   {
    "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": 705730,
    "benefits": 244115,
    "other": 11068892,
    "total": 12018737
   }
  ]
 }
}