TAT Fresh Tattoos

So I'm new to the whole ink cult. I was told that i shouldnt go out in the sun much or go swimming after i got my tattoo done. How long should i wait before i submerge my tattoo. I don't want to screw it up or anything.