fix bug in calc retry interval

@lxyu