def tm_format_currency(value):
    """
    Helper function to convert values from string to float values

    Parameters:
    value (str): raw value of fee or market value

    Returns:
    float: converted value
    """

    # Remove currency
    currencies = ['€', '£', '$']
    for c in currencies:
        value = value.replace(c, '')

    # Determine multiplier
    mult = 1000000 if value[-1] == 'm' else 1000

    # Convert to float
    value = float(value.replace('Th.', '').replace('m','').strip()) * mult

    return value