implemented getRemainingTime()