I'm trying to use the Chi-Square test to find the significance of data that suffers from the multiple testing problem. Because I have this multiple testing problem, the required p-value to view a test as significant is very, very low, around 10E-5. I haven't found a chi-square table that lists critical values that are so low. I'm wondering how I can actually calculate this value myself. Some google searching hasn't helped me find the method with which these chi-square tables are generated.
So:
I need to know how to calculate the chi-square values to arbitrarily low p-values.
I would like to know how these tables are generated in the first place. The internet tells me they exist and this is how we use them, but not where they come from. It feels a bit deus-ex-machina, like "here's a tool for you, and just trust us that it works."
I'm not a mathematician so an example with the values inserted would be greatly helpful.
Thanks for the help.

Your questions are quite simple to answer. In case of Chi-Square test, the p-value is computed as $1 - CDF_{\chi^{2}_{df}}(ts)$, where $CDF_{\chi^{2}_{df}}$ is a cumulative distributive function of Chi-Square distribution with $df$ degrees of freedom and $ts$ is the value of your test statistic. (Try to figure out why is p-value calculated this way - it is not so difficult).
So, if you want to calculate critical value of Chi-Square test at significance level $10^{-5}$ where test statistic has $\chi^{2}_2$ distribution under null hypothesis, just find the solution of equation $1 - CDF_{\chi^{2}_2}(ts) = 10^{-5}$ in $ts$.