'Calculate the maximum length of the base message with all applied
actions.'

def maximum_length(self, settings):

    l = self.length(settings)
    for i in self.actions:
        if isinstance(i, actions.InjectAt):
            l += len(i.value.get_generator(settings))
    return l
