I'm not sure exactly where to start on this one. I've searched previous threads and haven't found anything that seemed like it would really help.
I need to calculate a LoadDate from a DeliveryDate based on the number of days associated with that State that it is to be delivered to.
Each of the 50 states has a number from 0-14 which is the number of days it takes to deliver a job to that state. Actually right now there are only 5 numbersj: 1,2,3,4,14, But this could, and probably will change so I wanted to make it easy to add a new number (probably up to 15).
We do not ship on Sundays, nor do we count Sunday in the calculation of days. So if it takes 4 days to ship to a state and the DeliveryDate entered is on a Friday, the LoadDate should calculate to the following Wednesday: Friday + Sat(1) + Mon(2) + Tues(3) = Wed(4th day).
Now to complicate things even more, holidays are also excluded. I have a seperate table with holiday dates that we use at our company.
Can someone help me? I'm not sure where to start.
Thank you in advance for any help!!
I need to calculate a LoadDate from a DeliveryDate based on the number of days associated with that State that it is to be delivered to.
Each of the 50 states has a number from 0-14 which is the number of days it takes to deliver a job to that state. Actually right now there are only 5 numbersj: 1,2,3,4,14, But this could, and probably will change so I wanted to make it easy to add a new number (probably up to 15).
We do not ship on Sundays, nor do we count Sunday in the calculation of days. So if it takes 4 days to ship to a state and the DeliveryDate entered is on a Friday, the LoadDate should calculate to the following Wednesday: Friday + Sat(1) + Mon(2) + Tues(3) = Wed(4th day).
Now to complicate things even more, holidays are also excluded. I have a seperate table with holiday dates that we use at our company.
Can someone help me? I'm not sure where to start.
Thank you in advance for any help!!