Sagebrush, I'm still trying to wrap my head around all of this.
I regularly see the charging rate at around 38-39 miles per hour with the 240v and 47a wall connection.
So, to figure this I divide the 165 miles needed to full charge by let's just say 38, which gives .42, rounded off.
That's 4 hours 20 minutes, which I believe is what the display settled down at after a bit before I walked away.
Using your formula above I would then calculate 4.2 * .24 = 18.8 kwh total kw used. Correct?
Then using my power company charge of $.0802*18.8 = $1.44 to complete the charge of 165 miles.
That doesn't seem right looking at that amount but if correct, wow!
You're overcomplicating this. The analogy of what you're trying to do is calculating the cost of filling up a tank of gas by using the flow rate of the gasoline nozzle, and time it takes to fill. Too complicated!
Your "tank" is the battery. It's capacity is 100 kWh. This is the same unit that your electric meter reads in, and is how you're charged. To go from 0 battery to full battery is 100 times your per kWh rate "all in" as others have said.
For partial battery charges, which are most, you can figure this a few ways. The easiest is with TeslaFi or another service. It will give you data on each charge, which you can either manually calculate the cost or enter your cost of electricity (per kWh) into the program and it will tell you.
If you don't want to do that, then there are a few other options. First, use the trip meter to display the "since last charge" info. That will tell you how many kWh you used since you last charged your battery. Each time you go to charge, write that number down. Then whatever you're paying for electricity, multiply that to get your total cost. Keep track of that each charge. You'll probably want to multiply it by 105% since there is some loss between the wall and your battery when charging.
You can also do some real rough back of the napkin math. Since your battery capacity is 100 kWh, you can think of each percentage of charge equal to 1 kWh. Record the starting and completing percentage of each charge and then that's your number of kWh. Multiply that by your cost. Again, figure an additional 5% loss so multiply by 105%.
You're not charging to 100% are you....???