set @Date1 = (select CheckInDate from inserted)
set @Date2 = (select CheckOutDate from inserted)
set @PassportNumber = (select PassportNumber from inserted)
set @TotalDays = (select datediff(dd, GETDATE(), @Date2))
set @TotalDays = (select datediff(dd, @Date1, @Date2))