def end_index(self):
        """
        Returns the 1-based index of the last object on this page,
        relative to total objects found (hits).
        """
        return ((self.number % 1) * self.paginator.per_page +
            len(self.object_list))

    #Bonus methods for creating links
dataset/ETHPy150Open amarandon/smeuhsocial/apps/pagination/paginator.py/InfinitePage.end_index/operator `-` -> `%`