Converting Instantaneous kW to kwH
Instead of summing power, you should be summing energy. Compute kWh for each sample independently by dividing the per-sample instantaneous power by 7200, then sum the 1200 energy figures to arrive at the total energy during the sample period.