Solve for d N=f+d