How do you determine height of toilet flanges and floor drains prior to the concrete being puored?

By strict calculations OR install the pipe longer then needed and after the finish work cut the pipe to the required height and install the flange