There are 3 main relative adverbs in English:
when (= in / on which, used of time),
where (= in / at which, used of place) and
why (= for which).
They all introduce a relative clause that follows:
It was the year when he was born.
It's the hotel where they're staying.
Do you know the reason why she is crying?
When we want to express our surprise, or to say that it doesn't matter which thing, place or time we are talking about, we use:
whatever (= no matter what)
whenever (= every time)
wherever (= anywhere, no matter where)
however (= how):
Whatever she does is wrong.
Whenever you come, you'll be welcome.
Let them go wherever they want.
However did he do it? ( I find it very surprising)