convert timeouts to milliseconds