Both options are technically grammatically correct, but the one that makes the most sense in this sentence is "when."
8.8m questions
11.4m answers