Fixed treshold calculation