average maximum power demand with programmable period