An algorithm for determining best interest?