difference between clear date and due date in pandas code example
Example: python: calculate number of days from today date in a data frame
df[['A','B']] = df[['A','B']].apply(pd.to_datetime) # If conversion required
df['C'] = (df['B'] - df['A']).dt.days