Final Version: RMS voltage calculation working