Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6720 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello all,

I have a DB which stores some order line for a sale order.

Every record has a code that is the key for a relationship with my supplier database.

All the suppliers has a number that represents the shipment days (i place an order to that supplier and - i.e. - he ship the goods within 3 days).

Here comes the troubles. I must calculate the arrival date excluding all the saturdays and sundays because they aren't working days!

I hope I explained the problem well.

Any idea or suggestion to help me?

Posted

Well, maybe I've found a simple solution:

Today + ShipmentDays + Celing((ShipmentDays/7)*2);

last number evaluate the number of weeks beetween today and the Shipment date and multiply the week number for 2 (1 = saturday, 2 = sunday).

I use 'ceiling' to avoid decimal numbers.. in fact I'm still testing this calculation, it seems to be a good workaround.. at least It works.

if you have other and better soultions, please share them!

:)-) Bye!

This topic is 6720 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.