how to rank investments by profitability