I have to calculate the Monthly Return for some businesses using this function:
monthly return for month i+1 = (closing price in month i+1 - closing price in month i)/closing price in month i
I have a data set that contains the closing price every month for about 10 year. How would I create/use a function to calculate the MR for each month?