def total_hazard(facilities: list) -> int:
    """
    Function to obtain the total hazard caused by facilities

    :param facilities: list of problem's instance facility
    :return: an int representing the total hazard
    """

    tot_hazard = 0
    for facility in facilities:
        tot_hazard += facility.total_hazard
    return tot_hazard