how to calculate chance and probability