Calculating the rate of change in demand