def clean_amount(amount_str: str):
    """Convert amount string to integer and multiply by 1k."""
    if "(" in amount_str:
        return (
            -int(amount_str.replace(",", "").replace("(", "").replace(")", "")) * 1000
        )
    else:
        return int(amount_str.replace(",", "")) * 1000