Calculate the efficiency of a motor in two ways