Here's an example:
Say you're on a rate plan with 2 rates, Peak and Off-Peak. Suppose on a given day you're going to use 10 kWh during Off-Peak and 20 kWh during Peak, while your solar is going to generate 30 kWh during Off-Peak and 0 kWh during Peak.
1) With no Powerwalls: you send 20 kWh to the grid during Off-Peak, and you draw 20 kWh from the grid during Peak. So if you are on NEM, you pay 20 P - 20 O (where P is the Peak rate, O is the Off Peak rate).
2) What Tesla currently let you do is charge your Power with ~22 kWh of Off-Peak generation and use that to cover your 20 kWh of Peak consumption. So you draw 2 kWh of Off-Peak and have no net generation/consumption during Peak. You pay 2 O, which is typically less than 20 P - 20 O.
3) However, with enough battery capacity and control over the Powerwall behavior,, what you could do is charge the Powerwalls with your full 30 kWh of Off-Peak generation, and have the Powerwalls regenerate it all as ~27 kWh during Peak. So you'd be drawing 10 kWh of Off-Peak from the grid, and net generating 7 kWh of Peak to the grid. Your bill would be 10 O - 7 P, which is typically less than 2 O.
To pick some numbers, if P = 15 cents and O = 10 cents, then in case (1) you'd pay 100 cents; in case (2) you'd pay 20 cents ; and in case 3 you'd get a credit of 5 cents.
Cheers, Wayne