The omission of relative pronouns and relative adverbs depends on context. There is no hard and fast rule that applies to all sentences.
My personal preference would be to leave "when" in the first sentence. In the second sentence you can omit "where" if you put "in" at the end. The third is better without "why".
Don't make a rule about "where" from one sentence.
Interested in Language