def prob_of_transmission(Ph, Pm):
    """
    Total probability of transmission
    Parameters
    ----------
        Ph: Probability for members of each household to contract from their housemates
        Pm: Probability for members of each household to contract during the movement (wandering around)

    Returns
    -------
        out: Total probability of transmission

    Notes
    -----
    From paper: "𝑝𝑖𝑑 = 1 − Π(1 − 𝑝𝑖𝑑𝑤) 𝑤∈{ℎ,𝑡,𝑓,𝑚}."
    """
    return 1 - ((1 - Ph) * (1 - Pm))