how to calculate chance of success