How long do you wait?

How long do you wait to visit a doctor if you're not getting pregnant .. It's been four months which isn't too long but there's always that worry