fixed t0 calculation