Where this idea breaks down is when the refinery is a separate business unit from the extraction unit.
From the refineries perspective, it does not matter how much energy they get out vs in, but how much they pay for the feedstock.
The extraction component also only cares about what they can sell their product for.
Because of the demand, the price of oil will keep raising, and as I stated there will come a time when the
refinery will see greater profits by not buying oil, but by buying surplus wholesale electricity and creating
their own feedstock from elements in the air and water. (Hydrogen and Carbon)
As far as what can be provided, under the Navy's modest 60% storage efficiency (Sunfire claims 80% is possible),
it would take 55 kWh to create a gallon of gasoline.
How much land does solar need to generate a megawatt hour?
So each acre of panels could produce ~6,100 gallons of gasoline per year.
The amounts of diesel or jet fuel would be a little less, but the idea is that anyone with an energy supply, can make
all the fuel they need. Like the old mills charged a percentage of the crops to mill the product,
I suspect the refineries could supply fuel to farm operations for electricity.
Perhaps Solar homeowners could get a fuel credit for their surplus as well.