You can define calculation rows in any location in the template. In order to keep overviews simple, however, SAP recommends placing all calculation rows at the beginning of the template.
See also:
Displaying Calculation Rows Example of Formula Planning