Jim Cramer uses the examples of Nvidia and Nucor to explain how he decides how much to pay for a stock.