To calculate the payback period for your solar panel upgrade, divide the total cost of the upgrade by the amount of money you will save on your electricity bills each year. This will give you an estimate of how long it will take to recoup your investment through energy savings.