code: func calculateIPOffset(base *big.Int, ip net.IP) int {
  	return int(big.NewInt(0).Sub(bigForIP(ip), base).Int64())
  }
docs: // calculateIPOffset calculates the integer offset of ip from base such that
  // base + offset = ip. It requires ip >= base.