Calculates the current pages relative to the current page.