Debugged depth calcle