Probability calculation in investing