For some perhaps a stupid question, but where can I find - if it excists- a phormula to calculate pressures via temperature and temperature via pressure for saturated conditions?

Purpose: to implement in a PLC program to calculate superheat and subcooling.
Adding a lookup table is also possible of course but it would look more professional if we can use a phormula.