def range_calculator(limit: int, size: int, current: int):
    """
    Function that returns starting point, end point, and total pages based on input

    Parameters
    ----------
    limit: int
        the number of max items display on a page
    size: int
        size of the total items
    current: int
        the current "page"

    Returns
    -------
    int, int, int
        data in the order of starting point, ending point, max number of pages
    """
    total_page = (size // limit) + 1
    start = 0 if current == 1 else (limit * (current - 1))
    end = size if start + limit >= size else start + limit

    return start, end, total_page