add a simple profitability checker, suitable for use in coin-switching scripts