I looked at a random local route for a bus in Napa, CA and calculated if we use the same bus to go back and forth all day (I'm not sure if that's how the route actually is, I'm just keeping it simple) it will travel about 200 miles.
Apparently an electric transit bus averages about 0.5mi/kwh. At $0.30/kwh it costs $120 to make an electric bus go 200 miles.
Apparently a diesel transit bus gets about 5MPG. At $5/gallon it costs $200 to make a diesel bus go 200 miles.
If that route runs 6 days a week, that's 312 days in a year. Since they're saving $80/day, that's $24,960 in fuel savings per bus per year.
I don't really know much about maintenance and repairs on a bus, but an electric bus doesn't need oil changes and brakes will last a lot longer. Can we say that's $5K per year worth of maintenance reduction?
Round that out to $30K/year per bus saved by going electric. If a bus lasts 10 years, that's a $300K reduction in fuel and maintenance.
Apparently an electric bus costs $250K more than a diesel bus. Apparently a 50kw DC fast charger costs about $30K.
This means we have $20K of cost savings over a 10 year period on one bus. I count 13 local routes on Napa Vine Transit's website. Let's say they have 2 extra buses as spares. That's 15 buses. So we save $300K every 10 years, assuming current electric bus prices. With economies of scale, it's likely that eventually, the cost of an electric bus will go down, leading to more savings.
But, even if there is NO cost savings, and an electric bus and diesel bus cost exactly the same across its lifespan, an electric bus has other major benefits. It's significantly quieter and it is zero emissions. Yes, there may be emissions somewhere else (although nuclear kinda solves that, but that's a whole different debate), but those emissions are far away, not in our city. So it's overall healthier for the people near or riding the bus.