def compute_true_false_quarantine(data) -> tuple:
    """
    Calculates number of people correctly (incorrectly) identified for quarantining
    """
    true_quarantine, false_quarantine = 0, 0
    for attr in data['risk_attributes']:
        infected = attr['is_infectious'] or attr['is_exposed']
        rec_level = attr['rec_level']
        if rec_level == 3:
            if infected:
                true_quarantine += 1
            else:
                false_quarantine += 1
    return true_quarantine, false_quarantine