Calculating probabilities with exponential distribution