Function compare prices