The golden rule is to apply sunscreen 30 minutes prior to swimming. This way, it gets time to penetrate the skin and absorb efficiently.