https://blog.okcs.com/optimal-power-consumption-method/