http://forums.whirlpool.net.au/forum-replies.cfm?t=2249698
if(in && power < 78) power = 0;
else if(in) power *= 1.09;
First part resets power to 0W if it is consumption and below 78W
Second part increases consumption power by 9% only.
If(power <78) power =0;if(out) power *= 1.09;
This resets either consumption or generation to 0W if it is below 0W, then it will increase any generation by 9%