Slope method for determining extinction coefficients