adding functions to compute time shift and rupture duration of a finite source