import math


def _compute_page(offset: int, items_per_page: int) -> int:
    """Compute the current page number based on offset.

    Args:
        offset (int): The offset to use to compute the page.
        items_per_page (int): Nimber of items per page.
    Returns:
        int: The page number.
    """

    return int(math.ceil((int(offset) + 1) / int(items_per_page)))