And eventually battery replacement. “every Tesla vehicle’s battery is covered by an eight-year warranty”, and “For all variants the Model S and Model X, [the warranty covers] 150,000 miles, while the Model 3 Standard Range has it covered for 100,000. In the case of the Long Range and Performance versions of the Model 3, [the warranty is] 120,000 miles”.
I guess we don’t know yet how long the median battery will last but probably longer than the warranty, depending on how it is charged and other context. Battery replacement costs are currently very expensive, but perhaps will drop. Certainly battery replacement cost can’t be ignored, unless the vehicle is just scrapped because the battery replacement costs too much.