Wait for it to bubble if your'e not too sure how long to leave it on.
Why does this happen? Well you see this experiment all revolves around air pressure - though before we go to that let's begin from the beginning. First of all the can had some water in it right, well when you heated up the can heating the water inside the water turned to water vapour pushing all the air out. So when you tipped the can into the cold water the water vapour condensed back into about drops of water. Now water molecules are way closer together than in a gas state so it took up much less space. This small amount of water cannot produce much pressure on the inside of the cans walls, the outside pressure of air is stonger crushing the can.