How do I balance washing my hands enough and not becoming obsessive about it?

If washing your hands often makes you feel calmer then it's OK to stick with that, but if you're doing it every 15 minutes, for example, and it's bumping up your anxiety, then it may be time to seek mental health advice.