web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Based on a condition, ...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on 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]

Categories:
I have the same question (0)
  • Verified answer
    v-peijunz-msft Profile Picture
    Microsoft Employee on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard