Function to calculate survival time and censor variables before and post a time lag (delay treatment effect time)
Useful links