Solar panels work by capturing sunlight and turn it into an electric
flow which then is directed to an invertor that transform DC to AC to supply energy to your house.
Solar panel systems function with a set of photovoltaic modules known as solar panels, these modules are made of small photovoltaic cells which convert sunlight (photons) into direct current, through a chemical process where the main chemical component is silicon. Once the photons create a current flow, electricity is directed to an invertor so the electricity can be turn into direct energy. Immediately after that process your house can be powered with energy from the sun.
Net metering allows solar power system owners sell the electricity not in use, back into the grid that process ends up in a billing method that creates credit to the customer for the electricity they add to the grid
This graph shows the energy that could potentially be sold, showing solar energy production and electricity current consumption in kwh every month. Starting from April there is a big overproduction until sept. the overproduction being 1179 kwh that can be sold back to the grid and reduce the electricity bill price with the credit made from those kwh sold.