You are incorrectly assuming that the car will let you use the full 90kWh (which would permanently damage the battery). It won't. Rated Wh/mile is 340 on the P90D, I can confirm that as the rated and average lines are directly superimposed on the graph at 340Wh/mile, at 339 Wh/mile the average...