how to calculate success out of chance