Fixes #4632: Correct computation of pending interval