I think you want something like this:

Code
$calc($ctime - $nick(#channel,KindOne).idle)

The .idle property returns the number of seconds since a user last sent a message in the channel. This starts at 0 when they join.