The general formula you used is correct to calculate the average power over the period is correct. But It seems to me there is something strange:
why the time doesn't start from 0 but from 1 s ? (if, due to some reason, this is correct the first interval is 9 s instead of 10 s as you used)
in an hour there aren't 6000 seconds but only 3600.