Hi,
this will get you started https://en.wikipedia.org/wiki/Chi-squared_distribution#Table_of_.CF.872_values_vs_p-values
Any Statistics book will help you in learning further, e.g., among the others, https://cds.cern.ch/record/1019859/holdings
Cheers,
D