Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I think he wants to calculate some different components of the electrical energy, like current, voltage, power, energy and harmonics and rms and average values etc.
My advice is to build a data acquisition board with a microcontroller added to it. The board should be able to measure current and voltage that you'll work on. It should sample them fast and clear enough. For this, you may use current and voltage sense ICs/parts or you may design some circuit which uses proper resistors, amplifiers etc to sense these assets. Then you'll pass these values to a microcontroller and calculate the required components. For example you'll make a fourier transform and find the harmoncis. Or you'll sample the electricity for a given period and calcuate the rms value etc.