from typing import Dict


def add_information(statistic_dict: Dict, statistic_information: Dict):
    """
    Add information to existing dict.

    Arguments:
        statistic_dict {Dict} -- Existing dict.
        statistic_information {Dict} -- Data to add.
    """
    statistic_dict["dates"].append(statistic_information["datetime"])

    total = statistic_information["people_total"]
    people_with_mask = statistic_information["people_with_mask"]
    people_without_mask = statistic_information["people_without_mask"]

    statistic_dict["people_total"].append(total)
    statistic_dict["people_with_mask"].append(people_with_mask)
    statistic_dict["people_without_mask"].append(people_without_mask)

    mask_percentage = (
        statistic_information["people_with_mask"] * 100 / total
        if total != 0
        else 0
    )
    statistic_dict["mask_percentage"].append(mask_percentage)

    statistic_dict["visible_people"].append(
        people_with_mask + people_without_mask
    )

    return statistic_dict