Thanx for you comments, indeed the main problem was the fact that I was trying to calculate hrs/mins/secs as integers whereas of course there are no 100 seconds in...
Not exactly, I 'simply' need the average time that a user was logged on (so e.g. 50 users did log on, the average time that they where logged on was...