{lengths} is for questions dealing with measurements in TeX. If your question is about the spacing between document elements, use {spacing} instead.

The calc package is typically used in length calculations, allowing users to do

\setlength{\mylen}{2pt-3em+5pc}% 29.14992pt under 11pt font

similar to plain TeX's \dimexpr 2pt-3em+5pc\relax. In pure LaTeX, the equivalent would require

history | excerpt history