Calculating pagination bounds for display | Hacker News Reader