flexible_cdf function

Find the probability left or right of a number