Calculating probabilities of overlapping events