' See if a timeout has expired ' expD1 The starting date ' expN1 The number of minutes Public Function TimeoutHasExpired(ByVal tdDate As Date, ByVal tnMinute As Integer) As Boolean Dim llExpired As Boolean = False Dim lnMinute As Integer = tnMinute ' Adjust the timeout to remove the weekends ' If it has expired If tdDate.AddMinutes(lnMinute) < Date.Now Then llExpired = True End If Return True End FunctionIt receives a starting date. Lets assume tdDate is 01/01/2007 12:00:00 and the timeout is 1440. In this case, the timeout is one day. When I call this function, I need to see if the timeout has expired. As is now, it will return True.