Power measurement and calculations