This fixes #7381.  It now correctly calculates power and impedance.