Algorithms help determine eligibility, considering purchase history, shipping costs, and fraud risk ... the way it works is ...