Profit scoring algorithm