How long has it been since you've seen the ocean?
This was really interesting!
About 2.4 billion people -- 30% of humans -- live within 100km of the ocean.
I think, for the rest of us, it's important to get to the coasts even if it's not convenient.
For me, my answer is about a month; I was on the shore in Carlsbad CA about 3 weeks ago. I probably won't see the ocean for another 3-6 months, though!
Also, a lot of questions about whether bays, seas, sounds and so on count as the ocean.
For me, if it's a body of salt water connected to other oceans, it's a part of the ocean. That includes the Mediterranean, the Gulf of Mexico, and the San Francisco Bay.
But there were a lot of people who disagreed, and ultimately this is a subjective question.