[add] Calculate time to end