calculate the minimum amount of power needed