My back-of-the-envelope calculation, if covering an entire car with solar panels... Assumptions: car width is 5 ft, hood is 5 ft, roof is 3 ft, and trunk is 4 ft makes 60 square feet for the whole car. (Note, this isn't the dimensions from a Tesla, but from the older cars that I remember). High output solar panels are 15 watts per sq ft. So 900 watts output max (lets round it off to 1 kilowatt to make the math easy).
Now taking the rated specs from a Model S, a 60 kWh battery gets you 200 miles. So .3 kWh per mile. Therefore, leaving you car to recharge in the sun for 8 hours while you are at work, will get you home if you live within 25 miles. Assuming maximum efficiency of course. Note, that you can't put 60 sq feet of solar panels on the Model S, due to the long slope of the front and back windows, and redesigning it so that it has the non-window surface areas of my old 85 Chevy would make it less aerodynamic. But this gives you a good upper bound if I did my math right.