In short, every 2 hours. According to Johns Hopkins Medicine, For continuous protection, reapply sunscreen every two hours.
However, if you’re sweating or swimming, you should apply more frequently. Experts advise reapplying sunscreen at least every 80 minutes to ensure protection even when you’re physically active.