Calculates the current pages relative to the current page.
SearchPageState.
the number of pages to return.
the current page numbers.
Calculates the current pages relative to the current page.