Hi David,

Assuming Order Date in Col A1 & Shipment Date in Col B1 just try simple If Function :-

=IF((B1-A1)<4,1,0)