how to calculate power consumption