Finally, he adds the two numbers for each stock. The businesses with the lowest resulting numbers show up as Magic Formula stocks. A company like Google might get a rank close to 1 for return on invested capital and close to 3,000 for P/E ratio, yielding a total number around 3001. It is thus unlikely to be a Magic Formula pick.