Calculating probability of multiple events