Probability calculator