def convert_cash(price):
    """
    Converts price string to float.
    ---
    IN
    price: dollar amount (str)
    OUT
    price_float: price (float)
    """

    if price == None:
        return None

    trans = str.maketrans('','',',$')
    price_float = float(price.translate(trans))

    return price_float