I am trying to create a time to treatment variable for a panel dataframe at the district level. The dataframe is constructed with time observed quarterly. The time to treatm