Confinement to rules of Probability in CalculateP (Calculate Probability) on computation.py