export calcParagraphs for convenience