def METHOD_NAME(value, conversion_factor, port_unit_symbol):
    """Convert value in any of the listed units to equivalent in seconds or value in seconds to any of the listed units
    Args:
        value (float): input value
        conversion_factor (float): Conversion factor based on unit_conversion_factors
        port_unit_symbol (string): Control port unit symbol
    Returns:
        float: output value
    """
    if value == 0: # avoid division by zero
        value = 0.001
    if port_unit_symbol == "s" or port_unit_symbol == "ms" or port_unit_symbol == "min":
        return conversion_factor * value
    elif port_unit_symbol == "Hz" or port_unit_symbol == "MHz" or port_unit_symbol == "kHz":
        return conversion_factor / value
    else:
        return None