Tesla gets about 3.5 miles per kW. kW is 14c delivered in my area.
Costs of driving 100k on the Toyota: $10k in gas/oil.
Costs of driving 100k on the Tesla: $4k in electricity.
You save $6000 per 100,000 miles, excluding any other repairs.
Price difference is $26000, so you break even at 433,000 miles. If you make it that far.
Average American drives 13,500 miles per year. So... 32 years?
I personally own a 2008 Honda Fit with nearly 250k miles on it, and I haven't spent more than $5,000 on maintenance and repairs over the past decade. This car has proven to be highly reliable for me.
However, I had a different experience with a used Subaru Crosstrek that I purchased in 2020 with 130k miles on it. In just 3 years of ownership, I have spent over $5,000 on maintenance alone. If it weren't for the inflated prices of cars, I would have considered swapping it by now.
I'm not aware of the exact repair costs for a Corolla, but my understanding is that Honda and Toyota vehicles generally share similar levels of quality and reliability.
No amount of careful planning will ever replace dumb luck.