Report question

Question: Is this how you paginate, or is there a better algorithm?