It's correct. But you must understand using 'want to' is asking what their 'desire', 'wish' or 'want' is.
If you are not interested in what they desire to do, and you only want to know the duration of this stay, then it is much better to say: "How long are you going to stay there ?".