def _convert_monthly_sales_to_int(row: list[str]) -> int:
    """Convert sales value of row to int or 0 if invalid format."""
    try:
        return int(row[-1])
    except ValueError:
        print(f'Using sales amount of 0 for {row[0]}.')
        return 0