Fixed error with calculation of linear decline