using trapz to get the expected exceed downtime

actually, downtime is gamma distributed, trapz are not need, but still
the code worth saving for futher usage.