I would put "by any chance" at the beginning, though I don't think it's wrong where you put it. The second part of the sentence isn't correct. You could say for example:
By any chance do you know how many hours the flight is delayed?
By any chance do you know how long the delay for the flight is?