The cost of charging a Tesla depends on the battery capacity and the electricity rate. Additionally, you can calculate the cost to drive a certain distance based on the car's efficiency.
Cost to Fully Charge the Battery:
\[ P = C \times R \]
Cost to Drive a Certain Distance:
\[ E_C = \frac{X \times E \times R}{100} \]
where:
Suppose the battery capacity is 75 kWh, the electricity rate is $0.13/kWh, you want to drive 300 miles, and the efficiency is 30 kWh/100 miles:
Cost to Fully Charge the Battery:
\[ P = 75 \, \text{kWh} \times 0.13 \, \frac{\$}{\text{kWh}} = 9.75 \, \$ \]
Cost to Drive 300 Miles:
\[ E_C = \frac{300 \, \text{miles} \times 30 \, \frac{\text{kWh}}{100 \, \text{miles}} \times 0.13 \, \frac{\$}{\text{kWh}}}{100} = 11.70 \, \$ \]