One thing to keep in mind that electricity is priced in tiers.
Your first bundle of electricity per month is priced at x per kwH. The next bundle is x+a per kwH, next bundle is x+b, then x+c, etc.
Because of this tiered pricing, it isn’t necessarily cost-effective to install enough panels to eliminate all of your electric bill but it can be cost-effective to install enough panels to ensure that you don’t leave the baseline tier.
The cost of adding panels is tiered as well. In addition to the panels, you need some equipment to manage the power. This equipment can only handle so many panels. After 30 panels or so, you may need some new equipment and it is expensive so stopping at 30 may be best because panel number 31 costs alot more than panel number 29.
Best to pull up a couple years of monthly usage and pricing data and make make a spreadsheet to see how these capital cost and exprense reuduction tiers overlap. It will help you find the optimal installation.
Everyone gets all excited about running the meter backwards and selling power, but really a smart installation shouldn’t get you to that point.