I consider the rule of thumb thought at driver's school: 2 seconds. If you are less than 2 seconds behind the cyclist (or car), then you do not have enough reaction time to be fully safe. You are then in "drafting mode" in that you have to co-operate with the other cyclist. Trusting the cycling behaviour of an unknown cyclist is not always a wise thing to do!