Work and power calculations