It would be from the top of the flange to the top of the finished floor. Level with the floor would be what I would go for, if possible.
It's not all that critical. The wax ring will make up any difference. You definitely don't want it too small. There needs to be room for the wax ring.