end linecalculator