The roots of polynomial $ p(d) $ are:
$$ \begin{aligned}d_1 &= 2.3387\\[1 em]d_2 &= -0.6694+2.164i\\[1 em]d_3 &= -0.6694-2.164i \end{aligned} $$Polynomial $ d^3-d^2+2d-12 $ has no rational roots that can be found using Rational Root Test, so the roots were found using qubic formulas.