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