Correct XRD calculator.