Calculating probabilities with independent events