Hello.
I have an Apply to each where I get a field from a Sharepoint list and it is used as value for the varAvisoPresentacion variabale. Then I use the following function:
addToTime(utcNow(), int(variables('varAvisoPresentacion')), 'Day', 'yyyy-MM-dd')
I have checked the varAvisoPresentacion and is always correct (4, 1 and 2 in each iteration). If today is 2023-11-22, instead of getting 2023-11-26, 2023-11-23 and 2023-11-24 I get 2023-11-26, 2024-01-02 and 2025-01-07.
I heve checked the utcNow in each iteration and is correct, the variable is OK too but the function result is not.