Wrong computation of delta to find shortages

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

issue4215
review9751002