The Tesla S has a 60 or 85 KWH battery. Depending on where you live, I believe solar panels only produce about 3-8 wh per watt of panel. So you would need anywhere from 8KW up to 30KW of panels to charge the car. What would be the cost of that? Panels themselves are not too expensive now, they are under a dollar a watt. Still that is just part of the cost, installed costs about $3-4 per watt in the US. At the high end the solar panels would cost as much as the car. This assumes you fully drain and recharge the battery each night, which is unlikely. So perhaps a fraction of this, if you are just doing daily commuting.
Grid energy to recharge a tesla S would be something like $0.10/kwh. So about $6-8 to charge the battery. FWIW, that sounds like more than it costs to run all of a household’s appliances.