Better relative values calculation (strip non-digits)