Makes retry time calculation easier to monkey-patch by changing it from
a constant proc to a method.
Merge pull request #784 from lulalala/retry-colculation-as-method

Makes retry time calculation easier to monkey-patch