correctly calculate offset
ignore negaive uptime