def METHOD_NAME(self, margin, is_static):
    if is_static:
        position = self.data.get('static_hor_text_position')
    else:
        position = self.data.get('hor_text_position')
    if position == 'start':
        return '5%' if margin == 'left' else '45%'
    elif position == 'end':
        return '45%' if margin == 'left' else '5%'
    else:
        return '10%'