Excess electricity goes to battery backup: If the solar panels make more electrical energy than you use, the additional power is stored in a very battery backup for afterwards use. California introduced an up to date net metering plan in 2023 that reduces the charges utilities pay back to solar https://www.americanarraysolar.com/solar/solar-contractors-kings-county/