Implementing a calculating time limiter