Add calc_delay function, rename normalize_eta to norm_eta