Hi Talel
cable length depends on many factors, including cable material, signal losses in board/cable and
connectors, impedance matching, so I am afraid there is no simple formula to calculate.
One can try to find it experimentally controlling signal quality by oscilloscope or try to perform ibis modelling.
Best regards
igor