def shift_onset(name, group, df_onset, visit_col='Visit_Date', onset_col='onsetdt'):
    """Calculate time since symptom onset in years by subtracting visit date from date of symptom onset"""
    group[visit_col] = (group[visit_col] - df_onset.loc[name][onset_col]) / 365.4
    return group