Calculating RMS Voltage and Current to get Reactive Power and Real Power