If
U = log(X) + 2*log(J + D)

Then
J = sqrt(10^U/X) - D

So I expect the maths are wrong