Pressure/Temp equation for kegging

I’m looking for the equation to determine PSI to get to a desired volumes of CO2. I’m not looking for the chart, I can find those easily enough, I need to equation used to make the chart.

Thanks in advance!

I believe the charts are based simply on Henry’s Law:  Henry's law - Wikipedia