Returns the current value of the counter and then multiplies it by
        :attr:`factor`

        :rtype: float

def duration(self):
        """
        Returns the current value of the counter and then multiplies it by
        :attr:`factor`

        :rtype: float
        """
        d = self.for_attempt(self.cur_attempt)
        self.cur_attempt += 1
        return d