Calculating pagination bounds for display · HackerTrans