Add finding factor in ruby