Just the electrician's part would be a good chunk of the $5k, where we live (East coast US) before you even get into placing the panels themselves.
I keep seeing cheap panel costs with a "look, now you can afford it!" thing, but for those of us who may be handy but aren't quite willing to do high-power lines & boxes, or confident bolting steel to a roof without either killing ourselves or ruining the roof, the labor costs continue to be very high, and that part's not going down. From what I'm seeing for online "average costs for 10kw in your area" I'd hesitate to pull the trigger even if it were $5k lower than it is, which would probably be an even bigger discount than if the panels and other hardware were simply free.
History looked like it was going to repeat with EVs from the US except for Tesla. Now GM has some decent cars across a variety of models, Ford has 2. But neither company has put out any really low priced cars yet (you know, like under 30). Tesla (lead by darth vader) is the only hope for the near future of low priced cars. I think ford and gm will get there eventually. But it could be too late if imports can just come in.
In contrast to that, you can get a 7hr direct flight for about $430 (delta, round trip, luggage not included).
Or a full size sedan for about $500 (one way, 3 days, does not include estimate of $400 on fuel).
I wish trains were more affordable because (I think) the experience is worth it.
P.S. it's strange for me because they are pretty well off but nothing got checked at the embassy. Reason stated was to see me & the family (2 nephews).
I use R professionally for biostatistics and I can't remember the last time I had to use the base syntax because something couldn't be done with the tidyverse approach.