Investing.com -- UiPath Inc. (NYSE:PATH) stock gained 4.2% in after-hours trading Tuesday following the announcement that the company will be added to the S&P MidCap 400 index.