Hi@vffdd
This is the formula I would use to add the value in your SLA textbox to the variable/field that you've defined as DateToday.
Can you see if that produces the correct result?
With({ startDate:DateToday,
daysToAdd: Value(SLA.Text)
},
DateAdd(startDate, daysToAdd) +
RoundDown(daysToAdd/5, 0)*2 +
Switch(Weekday(startDate, StartOfWeek.Monday),
5,If(Mod(daysToAdd, 5)>0,2,0),
4,If(Mod(daysToAdd, 5)>1,2,0),
3,If(Mod(daysToAdd, 5)>2,2,0),
2,If(Mod(daysToAdd, 5)>3,2,0),
1,If(Mod(daysToAdd, 5)>4,2,0)
)
)