Some functions to generate next avail date+time.