def time_remaining_est(self, completed_iter):
if completed_iter:<EOL><INDENT>t_r_est = (time.time() - self.t_start) /completed_iter*(self.iter-completed_iter)<EOL><DEDENT>else:<EOL><INDENT>t_r_est = <NUM_LIT:0><EOL><DEDENT>date_time = datetime.datetime(<NUM_LIT:1>, <NUM_LIT:1>, <NUM_LIT:1>) + datetime.timedelta(seconds=t_r_est)<EOL>time_string = "<STR_LIT>" %(date_time.day - <NUM_LIT:1>, date_time.hour, date_time.minute, date_time.second)<EOL>return time_string<EOL>
Estimate the remaining time left.

        Parameters:
            completed_iter (int): Number of iterations completed.

        Returns:
            est_time: Estimated time remaining.