'How much more time before the final materialization.'

def get_progress(self):

    next = mktime(self.nextMaterializedTime)
    start = mktime(self.startTime)
    end = mktime(self.endTime)
    if (end != start):
        progress = min(int(((1 - ((end - next) / (end - start))) * 100)), 100)
    else:
        progress = 100
    action_count = float(len(self.actions))
    if ((action_count != 0) and (progress == 100)):
        progress = int(((sum([action.is_finished() for action in self.actions]) / action_count) * 100))
    return progress
