Calculating the rate of change and initial value