import math


def calculate_total_pages(page_size, total_results):
  """Calculates the number of pages for a given page size and number of results.

  Args:
    page_size: int, the size of the amount of items for a page.
    total_results: int, the number of results.

  Returns:
    The calculated integer value of the total number of pages.
  """
  total_pages = total_results/page_size
  return int(math.ceil(total_pages))