well, shouldn't that be the difference between the logon_time and the current_time (sysdate) ?

May be we are missing the point altogether ???

- Rajeev