Convolution of uniform distributions and ruin probability