Correction in the formula to choose the best potion.