It's so much simpliar than it seems. You can keep track of your away message with $awaymsg and your away time with $awaytime. The away time is returned in seconds, so if you want to break it down to minutes, you can utilize $calc to divide the $awaytime by 60. Hope this is of assistance.