Passage time of a random walk in the quarter plane for opinions in the voter model