How long do I keep my iPhone 5 in rice for?

Long story short, my iPhone 5 fell into my washing machine and was probably there for about 6 minutes or so. The battery was already dead when it fell in… I still have my warranty with apple. How long should I keep it in the rice? Or am I out of luck…

Keep it in there for as long as you can a hole day if possible!