Jim Cramer shares his advice on figuring out when to 'buy the dip' in a stock