Extract the computed offset function from 'pin' module into 'computed' library