power calculation for compressor