How to calculate percent change in stock price

What is the correct formula to calculate percentage change in stock price?

Percent change is calculated as: [(New Price - Old Price) / Old Price] x 100. This gives the percentage increase or decrease in the stock price over a period. It’s a quick way to measure performance.