Wrong computation of delta to find shortage

On the first loop, get_shortage adds a second times the delta of moves at
current date.

issue4215
review6561002