Add timeout to total duration after last retry

Add timeout value to total duration after last retry to resolve future.