Function LOS() takes a Pat_ID as parameter and calculates the LOS as follows:
_dev_CCMDB
2022-02-10 - ...