Calculate the number of days between two timestamps. The code extracts TS2 from TS1 (TS1-TS2)
AsInteger(SecondsSinceFromTimestamp2(TS1, TS2) / 86400)