calculate_tad function

Calculate time after dose for pharmacokinetic data