Numerical determination with given accuracy of the optimal response time of a system