Ok so, this is the situation. I’ve got an app where one of our sales reps can feed in a date, and depending on the type of product (different data type), a product delivery date is calculated and shown.
The type of product data type is configured with a “Type” text field and a “Date interval” field that has the time that it takes to source, build and deliver the specific product.
The Product delivery date was supposed to be calculated when the order is being placed, so “Current time” + ProductType’s “Date interval” = Product delivery date. The problem is that the date interval does not take into account that in some cases, there will be weekends in middle of the interval, which should not be counted towards the calculation.
So, if a product type has a 3 day interval, and the order is placed on friday at noon, it should calculate the delivery date as wednesday at noon, not monday.
You are just setting an startDate from a date picker (or some other date in Bubble) and also setting the desired interval. The expression element will return a date which you can use just like any other Bubble date.