def update(day, day_to_implement, new_social_distance, new_stay_at_home):
    """
    updates current policies, panic, quarantine policiy and stay at home order
    Parameters
    ----------
    day : int
        current day of the simulation.
    day_to_implement : int
        day from which measures are implemented.
    new_social_distance : int
        radius of square in which agent will look for other less populated areas.
    new_stay_at_home : int
        determines if stay at home order will be activated.

    Returns
    -------
    updated panic index, quarantine policy and stay at home order

    """    
    panic = 0
    quarantine_policy = 0
    stay_home = 0
    
    if (day >= day_to_implement-1):
        panic = new_social_distance
        quarantine_policy = 0
        stay_home = new_stay_at_home
        
        
    
    return panic, quarantine_policy, stay_home