cancel
Showing results for
Did you mean:
Helper III

## Date Calculation Dependant on Value From another Field

Hi there

I hope someone can help me please

I'm building an Agreement app where someone agrees to make a number of payments at an agreed frequency and an agreed amount (£), starting from an agreed date

I the App I will be adding a date field (date someone is starting to make a payment), a frequency of payment (drop down - weekly, fornightly, monthly etc) and a payment value (drop down - £5, £10 etc).

In the app will be another field which I want to be a calculated one based on the start date of paying, the frequency of paying and the value.

So for example

If I owe someone £100, I start paying on Monday 17/4/2023 and I've said I will pay if off £5 per week, I want my calculated field to tell me when my final payment should be, so in this case it would be 28/8/2023

Is that possible to do and if so how please?

Kind regards

Karen

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

Something like this should work:

``DateAdd(StartDate,RoundUp(Amount/Payment)*7,TimeUnit.Days)``

For example: 1 week payments, \$100, \$5 each week

StartDate: Where startdate is 1 week before the first payment. If you want the first payment to be paid on the StartDate change RoundUp(Amount/Payment)*7 to (RoundUp(Amount/Payment)-1)*7

Amount: \$100

Payment: \$5

4 REPLIES 4
Frequent Visitor

Something like this should work:

``DateAdd(StartDate,RoundUp(Amount/Payment)*7,TimeUnit.Days)``

For example: 1 week payments, \$100, \$5 each week

StartDate: Where startdate is 1 week before the first payment. If you want the first payment to be paid on the StartDate change RoundUp(Amount/Payment)*7 to (RoundUp(Amount/Payment)-1)*7

Amount: \$100

Payment: \$5

Helper III

Hi @denz

Thank you for getting back to me.

That's ace, thank you, i'll give it a whirl and let you know 🙂

Kind regards

Karen

Helper III

Hi @denz

Sorry another couple of q's. Would this formula need to go in to a blank field and would it go in the ThisItem and would it show as a date

Kind regards

Karen

Helper III

Hi @denz

All sorted, worked a treat, thank you 😊

Everday is a learning day. 😊

Kind regards

Karen

Announcements

#### Celebrating a New Season of Super Users with Charles Lamanna, CVP Microsoft Business Applications

February 8 was the kickoff to the 2024 Season One Super User program for Power Platform Communities, and we are thrilled to welcome back so many returning Super Users--as well as so many brand new Super Users who started their journey last fall. Our Community Super Users are the true heroes, answering questions, providing solutions, filtering spam, and so much more. The impact they make on the Communities each day is significant, and we wanted to do something special to welcome them at our first kickoff meeting of the year.   Charles Lamanna, Microsoft CVP of Business Applications, has stressed frequently how valuable our Community is to the growth and potential of Power Platform, and we are honored to share this message from him to our 2024 Season One Super Users--as well as anyone who might be interested in joining this elite group of Community members.     If you want to know more about Super Users, check out these posts for more information today:    Power Apps: What is A Super User? - Power Platform CommunityPower Automate: What is A Super User? - Power Platform Community Copilot Studio: What is A Super User? - Power Platform Community Power Pages: What is A Super User? - Power Platform Community

#### February 2024 User Group Update: Welcoming New Groups and Highlighting Upcoming Events

It's a new month and a brand-new year, which means another opportunity to celebrate our amazing User Groups!Each month, we highlight the new User Groups that have joined the community. It's been a busy season for new groups, because we are thrilled to welcome 15 New User Groups! Take a look at the list below, shared by the different community categories. If your group is listed here, give this post a kudo so we can celebrate with you!   We love our User Groups and the difference they make in the lives of our Community! Thank you to all the new User Groups, new User Group leaders--we look forward to hearing about your successes and the impact you will leave!   In addition to our monthly New User Group spotlight, it's a great time to share some of the latest events happening in our User Group community! Take a look at the list below to find one that fits your schedule and need! There's a great combination of in-person and virtual events to choose from. It's a great time of year to connect and engage with User Groups both locally and online. Please Welcome Our NEW User Groups   Power Platform: Heathcare Power Platform User Group Power Platform Connect Hub Power Platform Usergroup Denmark Mexico Norte- Power Platform User Group Pune Power User Group Sudbury Power Platform User GroupMicrosoft User Group GhanaMPPBLR - Microsoft Power Platform Bengaluru User Group Power Apps:   Myrtle Beach Power Platform User GroupAnanseTechWB PowerApps Copilot Studio: Pathfinders Power Platform Community Dynamics365: Cairo, Egypt MSD 365 Business Central/NAV/F&O User GruopMS Dynamics 365 Business Central LatamCincinnati OH D365 F&O User Group February User Group Events February 2024 Cleveland Power Platform User GroupPortallunsj - Februar 2024Indiana D365/AX February User Group MeetingQ1 2024 KC Power Platform and Dynamics 365 CRM Users Group