Computes a Universal Product Code check digit.