Now after generating the simulations, it calls a function to add up the cumulative probabilities