DFO-3967
Fixed issue in which work order was created from calendar line with lowest interval instead calendar line with closest expected date.