to find the peaks you can try something like this...
- get the three points of your sample
- comparing the last value with the next you can find where the peaks occur
- when the current value is greater than the last and next you will have a peak
Here is how make in matlab !
How to detect local maxima and curve windows correctly in semi complex scenarios?
if you get the peak now you can mount the Parabola expression for y-axis, General form of a parabola:
y = ax^2+ bx + c
Then if the Peak of the curve occur at point eg: y = 3 do you have one parabola =:
f(x) = y = -3x^2 + 6x
After that you are required to find where the curve of the x-axis is the beginning and where it ends
Making this you are ready to apply Integral Area!

b = Upper point find in x-axis
a = Lower point find in x-axis
And then finally you have the area