{
 "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 Westport, including department detail.",
  "town_scope_note": "`function_totals` covers Westport 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 Westport: 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": "Westport",
 "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": 4311526,
    "benefits": 0,
    "other": 2512072,
    "total": 6823598
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 4311526,
    "benefits": 0,
    "other": 2512072,
    "total": 6823598
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 18444157,
    "benefits": 0,
    "other": 3124109,
    "total": 21568266
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 8304194,
    "benefits": 0,
    "other": 394909,
    "total": 8699103
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 8806849,
    "benefits": 0,
    "other": 531134,
    "total": 9337983
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 1333114,
    "benefits": 0,
    "other": 2198066,
    "total": 3531180
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3356961,
    "benefits": 0,
    "other": 6333690,
    "total": 9690651
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2181173,
    "benefits": 0,
    "other": 3080389,
    "total": 5261562
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 288376,
    "benefits": 0,
    "other": 2108633,
    "total": 2397009
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 887412,
    "benefits": 0,
    "other": 1144668,
    "total": 2032080
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1317167,
    "benefits": 134231,
    "other": 388713,
    "total": 1840111
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 332658,
    "benefits": 134231,
    "other": 116722,
    "total": 583611
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 984509,
    "benefits": 0,
    "other": 271991,
    "total": 1256500
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 7862914,
    "benefits": 286546,
    "other": 2299686,
    "total": 10449146
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 4698829,
    "benefits": 286546,
    "other": 0,
    "total": 4985375
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 3164085,
    "benefits": 0,
    "other": 2299686,
    "total": 5463771
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 76658890,
    "benefits": 36713912,
    "other": 22361839,
    "total": 135734641
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 76658890,
    "benefits": 36713912,
    "other": 22361839,
    "total": 135734641
   },
   {
    "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": 13308084,
    "total": 13308084
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 13308084,
    "total": 13308084
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 976484,
    "total": 976484
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 976484,
    "total": 976484
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 18739341,
    "other": 469798,
    "total": 19209139
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 18739341,
    "other": 469798,
    "total": 19209139
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 111951615,
    "benefits": 55874030,
    "other": 51774475,
    "total": 219600120
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 4248692,
    "benefits": 0,
    "other": 3288344,
    "total": 7537036
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 4248692,
    "benefits": 0,
    "other": 3288344,
    "total": 7537036
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 19103723,
    "benefits": 0,
    "other": 3261984,
    "total": 22365707
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 8563762,
    "benefits": 0,
    "other": 436000,
    "total": 8999762
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 9143971,
    "benefits": 0,
    "other": 602304,
    "total": 9746275
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 1395990,
    "benefits": 0,
    "other": 2223680,
    "total": 3619670
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3513369,
    "benefits": 0,
    "other": 6969830,
    "total": 10483199
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2310874,
    "benefits": 0,
    "other": 4035946,
    "total": 6346820
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 354050,
    "benefits": 0,
    "other": 2101257,
    "total": 2455307
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 848445,
    "benefits": 0,
    "other": 832627,
    "total": 1681072
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1323271,
    "benefits": 105680,
    "other": 403046,
    "total": 1831997
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 375750,
    "benefits": 105680,
    "other": 105680,
    "total": 587110
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 947521,
    "benefits": 0,
    "other": 297366,
    "total": 1244887
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 7696191,
    "benefits": 293707,
    "other": 2210361,
    "total": 10200259
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 4817653,
    "benefits": 293707,
    "other": 0,
    "total": 5111360
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 2878538,
    "benefits": 0,
    "other": 2210361,
    "total": 5088899
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 78780215,
    "benefits": 36140421,
    "other": 23611094,
    "total": 138531730
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 78780215,
    "benefits": 36140421,
    "other": 23611094,
    "total": 138531730
   },
   {
    "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": 12178612,
    "total": 12178612
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 12178612,
    "total": 12178612
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 1445214,
    "total": 1445214
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 1445214,
    "total": 1445214
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 20104782,
    "other": 329182,
    "total": 20433964
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 20104782,
    "other": 329182,
    "total": 20433964
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 114665461,
    "benefits": 56644590,
    "other": 53697667,
    "total": 225007718
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 4500282,
    "benefits": 0,
    "other": 2124911,
    "total": 6625193
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 4500282,
    "benefits": 0,
    "other": 2124911,
    "total": 6625193
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 21482313,
    "benefits": 0,
    "other": 1770392,
    "total": 23252705
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 9004222,
    "benefits": 0,
    "other": 458690,
    "total": 9462912
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 9614587,
    "benefits": 0,
    "other": 499207,
    "total": 10113794
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 2863504,
    "benefits": 0,
    "other": 812495,
    "total": 3675999
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3524743,
    "benefits": 0,
    "other": 7305101,
    "total": 10829844
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1285074,
    "benefits": 0,
    "other": 3401259,
    "total": 4686333
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 350163,
    "benefits": 0,
    "other": 2180452,
    "total": 2530615
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 1889506,
    "benefits": 0,
    "other": 1723390,
    "total": 3612896
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1373554,
    "benefits": 105680,
    "other": 460845,
    "total": 1940079
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 375751,
    "benefits": 105680,
    "other": 105680,
    "total": 587111
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 997803,
    "benefits": 0,
    "other": 355165,
    "total": 1352968
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 8373864,
    "benefits": 272495,
    "other": 2646249,
    "total": 11292608
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 4817654,
    "benefits": 272495,
    "other": 0,
    "total": 5090149
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 3556210,
    "benefits": 0,
    "other": 2646249,
    "total": 6202459
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 81380070,
    "benefits": 37111989,
    "other": 25574470,
    "total": 144066529
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 81380070,
    "benefits": 37111989,
    "other": 25574470,
    "total": 144066529
   },
   {
    "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": 13063038,
    "total": 13063038
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 13063038,
    "total": 13063038
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 1962993,
    "total": 1962993
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 1962993,
    "total": 1962993
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 20298880,
    "other": 447806,
    "total": 20746686
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 20298880,
    "other": 447806,
    "total": 20746686
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 120634826,
    "benefits": 57789044,
    "other": 55355805,
    "total": 233779675
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 4307011,
    "benefits": 0,
    "other": 2796304,
    "total": 7103315
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 4307011,
    "benefits": 0,
    "other": 2796304,
    "total": 7103315
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 21198870,
    "benefits": 0,
    "other": 3936128,
    "total": 25134998
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 9580930,
    "benefits": 0,
    "other": 509059,
    "total": 10089989
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 10132834,
    "benefits": 0,
    "other": 675658,
    "total": 10808492
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 1485106,
    "benefits": 0,
    "other": 2751411,
    "total": 4236517
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 3831267,
    "benefits": 0,
    "other": 6896160,
    "total": 10727427
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1362426,
    "benefits": 0,
    "other": 2986105,
    "total": 4348531
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 387148,
    "benefits": 0,
    "other": 2287026,
    "total": 2674174
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 2081693,
    "benefits": 0,
    "other": 1623029,
    "total": 3704722
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 1343561,
    "benefits": 117129,
    "other": 450629,
    "total": 1911319
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 323498,
    "benefits": 117129,
    "other": 117129,
    "total": 557756
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 1020063,
    "benefits": 0,
    "other": 333500,
    "total": 1353563
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 9158522,
    "benefits": 272495,
    "other": 3155620,
    "total": 12586637
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 5443802,
    "benefits": 272495,
    "other": 0,
    "total": 5716297
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 3714720,
    "benefits": 0,
    "other": 3155620,
    "total": 6870340
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 84836200,
    "benefits": 39157719,
    "other": 25535966,
    "total": 149529885
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 84836200,
    "benefits": 39157719,
    "other": 25535966,
    "total": 149529885
   },
   {
    "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": 12456030,
    "total": 12456030
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 12456030,
    "total": 12456030
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 1248291,
    "total": 1248291
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 1248291,
    "total": 1248291
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 18986055,
    "other": 510319,
    "total": 19496374
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 18986055,
    "other": 510319,
    "total": 19496374
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 124675431,
    "benefits": 58533398,
    "other": 56985447,
    "total": 240194276
   }
  ]
 }
}