The solar panels harvest and turn sunlight to DC (direct current). The inverter turns DC (direct current) into alternating current (AC). During the day, solar power will run through a switchboard, thus powering appliances. If electrical appliances are not in use, or if excess solar power is being produced, the power gets sent to the grid and is measured by the meter box. Electricity retailers apply for credits in exchange for energy produced. When there is no sunlight to produce energy like in the night times, power will be drawn from the grid to be used and this can be paid with credits earned.