I have an experiment running which generates variable current due to a chemical reaction over a period of 8 hours. I sampled the current at each hour with a constant voltage supply of 12V. When i use P= I*V i get the power at that particular reading.
My assumption to calculate a the power consumed during the complete experiment was to plot a graph between the power at each hour and experiment duration. Calculating the area under the plot graph will be power calculated per experiment but not in kwh.
Is my assumption true or is there a mathematical formula that i have to use to calculate the power in kwh.