Calculating the percent change at each sample of a series