calc probabilities