Skip to main content
Community site session details

Community site session details

Session Id : gvztO7xBkbhDvWvfFN3PsS
Power Automate - Building Flows
Answered

Based on a condition, add 30 days more in a column

Like (0) ShareShare
ReportReport
Posted on 17 Apr 2023 23:11:18 by 111

flow.png


If these conditions are respected, I need to take the value of the [END_DATE] column and do the following calculation: ([END_DATE]+30 days - current date), and save this value in the column [TIME_EXPIRE]

 

I tried to use the add days function, but I couldn't do the math bringing the values ​​of the column [END_DATE]

  • Verified answer
    v-peijunz-msft Profile Picture
    Microsoft Employee on 18 Apr 2023 at 03:25:50
    Re: Based on a condition, add 30 days more in a column

    Hi @JasonCastro 

     

    Do you want to get the time difference between the end date plus 30 days and the current date, this store this value to the column Time Expire?

    Based on your description, I have made a simple test for your reference.

    1. Here is the flow:

    div(div(sub(ticks(addDays(items('Apply_to_each')?['EndDate'],30)),ticks(utcNow())), 10000000), 86400)

    vpeijunzmsft_2-1681788286166.png

    vpeijunzmsft_3-1681788332425.png

     

    2. Result:

    vpeijunzmsft_0-1681788165315.png

    vpeijunzmsft_1-1681788210452.png

     

    Best regards,

    Sylvia

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete