If it’s for a resistive single touch display, you can use a tool called xinput-calibrator to do a 4 point calibration and save it’s configuration.
sudo apt install xinput-calibrator
I think it has a launcher in the Applications menu but it’s best to run from the terminal:
xinput_calibrator
Afterwards, it’ll prompt to save the configuration to a file, copy where it says “the snippet below” from the terminal and then type:
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
Paste the configuration data and save using CTRL + X (pressing y to save) so it’s persistent across reboots.