There's an online calculator here. Plugging $\chi^2 = 23$ and $df=7$, we get $.0017$. Your calculator calculated the probability that $0 \leq \chi^2 \leq 23$, which is $1-.0017 = .9983$.
As I commented above, you could tell that you needed to take $1-p$ instead of $p$ since $\chi^2 > 23$ is an unlikely event, given that the expectation is $7$ and the standard deviation is $\sqrt{14} \approx 4$ (Chebyshev and even Markov would give you that $p < 1/2$).