Did you calculate uncertainty too in gradient in the last part/s? if yes, then use uncertainty(in gradient) + gradient to calculate value of N again. Subtract the new N value from that N value in which you used gradient only to find the uncertainty. I'll explain if you still dont understand..