How smart companies decide where to invest their capital