cfi: calculate correct timeouts