determine min and max price