Calculates the threshold for one condition one_threshold calculates the threshold for one condition one_threshold
one_threshold