Solve for c d=(c-s)/n