Power factor and phase angle calculations