gchiu:
That's going to be tricky to calculate to see if plan b is better than plan a because you then need power consumption between those hours if you aren't on those plans - I presume that they give you the consumption between those hours. But for people wanting to switch to such a rate, you're going to be spending a lot of time at your meter!
That's why somoene invented CSV files :-P