Fixed the delivery calendar wrong calculation issue