I hope this finds you well.

I kindly need your help to calculate the time difference(Months, Years or Day) in a longitudinal data set where I have patients with recorded visits up to 8 visit. Some patients have up to 3rd visit, 5 visit.. etc. I have date of each visit and I would like to get the time difference between each visit for each patient.

Regards

Humphrey