In the datasheet: Implementation of a Three-Phase Electronic Watt-Hour Meter Using MSP430F677x(A) (Rev. G), a formula for calculating the enerqy is presented. According to me this formula is incorrect because it does not take time into account. Also, it seems dependent of the number of samples you take durring one second. Could someone explain why they do it this way and if its correct or not. The formula is in the image below.