That industry exists, it is called Purchase Power Agreements. The value of x is usually 20 or 25. It is typically lucrative for the company, not so much the homeowner.
This indicates to me that the payback for a homeowner is probably in the 7-10 year mark, if they weren’t somehow getting screwed over in the process.