The area under the curve is "total" not "area". You are calculating the discrete sum correctly though: just add up the trapezoid areas. Even if you lose 10%, you can rest assured that while you need...