Calculate the numbers in parentheses first.
****************************************
Whilst the above answer is perfectly correct - A formula in LibreOffice Calc is written within parentheses: =SUM(A1:A22) if this formula is put into A23, for example, it will show the total for A1 to A22 in A23