How do you calculate electricity usage price and solar production price

I was wondering how do you calculate energy usage price vs solar generated sale price if you have Time of USE?

Do you just average prices or use weighted average calculation?

I figured I could use Weighted Average calculation to get as close of a price as possible.

Where I am the TOU rates are as following:

M - F
High Peak 1p - 5p @ $0.19935
Low Peak 10a - 1p, 5p - 8p @ $0.19935
Base 8p - 10a @ $0.17581

Sat - Sun
Base 24h @ $0.17581

Calculating the hours for each period per week, you get:
High Peak = 20h or 11.90%
Low Peak = 30h or 17.86%
Base = 118h or 70.24%

Plugin in the prices, the weighted average price for usage is $0.182816

Solar production the calculation is similar the only difference is number of hours of the solar production. Lets assume right now it is 11 hours from 6a to 7p

Calculating the hours for each period per week, you get:
High Peak = 20h or 25.98%
Low Peak = 25h or 32.47%
Base = 32h or 41.55%

Plugin in the prices, the weighted average price for solar production, is $0.189567

Not much of the difference now, but in June the High Peak and Low Peak goes up in price.

What do you think?

I have solar and am on a EV ToU rate. My buy and sell “prices” are the same - it’s Net ToU. What I do is simply look at my Net Usage over the entire year and divide by my cost to get essentially a weighted average, based on my yearly experience. If I want to get things more accurate, I have to turn to my Tariff Cost Calculator.