The number of solar panels you'll need depends on your home's location, energy consumption, and the type of panel. Here's a simple formula for the calculations.