After thinking about my above post I would guess at the end they are only charging for the difference in what you produce any what you buy. Is that correct?
That is correct in some jurisdictions.
If your state has a Net Metering law, then POCO will credit you for any excess that you produce at the same rate they charge you for it. They typically give you a monthly status and clear out any credit you may have at the end of the billing year.
If you also have Time Of Day (TOD) or Time Of Use (TOU) metering, then they will pay you for your daytime excess at peak rates and charge you at off-peak rates for what you buy at night. This can work out well if nobody is home during the day!
If you do not have Net Metering, your POCO's meter may record separately the flow into your house and the flow out (on an intantaneous basis) and pay you one rate for your excess (usually the lowest rate that they pay for power from other sources) and charge you full retail rate on what you use.
If you have the latter situation, you will want to arrange your power loads as much as you can to not have excess power during the day. That is, if you would be using the power some time in the 24 hour cycle regardless, use it during the day to the extent that you can.
Unless there is a separate production meter (usually to keep track of Solar Renewable Energy Credits), they have no idea how much you are producing and using immediately yourself.