What is adjusted stock price

How is the adjusted stock price calculated after splits or dividends?