<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def complexes_timeonly(self, strands, max_size):
        '''Estimate the amount of time it will take to calculate all the
        partition functions for each circular permutation - estimate the time
        the actual \'complexes\' command will take to run.

        :param strands: Strands on which to run energy. Strands must be either
                       coral.DNA or coral.RNA).
        :type strands: list of coral.DNA or coral.RNA
        :param max_size: Maximum complex size to consider (maximum number of
                         strand species in complex).
        :type max_size: int
        :returns: The estimated time to run complexes' partition functions, in
                  seconds.
        :rtype: float

        '''
        cmd_args = ['-quiet', '-timeonly']
        lines = self._multi_lines(strands, [max_size])
        stdout = self._run('complexes', cmd_args, lines)
        return float(re.search('calculation\: (.*) seconds', stdout).group(1))