Something like will find the latest entry in a log:
FIND UserLog WHERE UserLog.LoginName=LoggedInRegularUser.LoginName ORDER BY UserLog.LogTime DESC TAKE BEST 1
If it helps at all, here is a rule that I sometimes as a Logout Notification in the section 'When Logout Notification is Received"
LoggedInRegularUser.LastLogoutTime=CURRENT_TIMESTAMP
LoggedInRegularUser.LastLogoutTimeout=LogoutNotification.IsTimeout
LoggedInRegularUser.LastLoginDuration=LoggedInRegularUser.LastLogoutTime-LoggedInRegularUser.LastLoginTime
One other idea would be to collect the duration info in the RegularUser instance with the above rule, then add a RegularUser rule to CREATE an appropriate log record using the duration info that is calculated above.
Tom