How to calculate the handover time?