cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cnr
Advocate II
Advocate II

Building an interest payment projection forcast

Hi all,

 

I was wondering if someone might know how to build out a interest projection piece for an app?

 

For example if I had a loan which had a life of 3 years with 4 payments a year with a 6% interest rate. How would I go about projecting this out so that as the days draw closer and each interest period passes the current date the projections update dynamically to show the next 4 periods.

 

If anyone has any idea of how to go about this it would be greatly appreciated.

 

Below is roughly what I am trying to build towards

cnr_0-1641919380894.png

 

Many thanks,

Conor

 

1 ACCEPTED SOLUTION

Accepted Solutions
rubin_boer
Super User
Super User

hi there @cnr 

 

Please find the following, the scenario is a loan amount, interest based on the term and the total repayment is divided by the term. This is them shown to the user base on date in reference to the payment term.

 

If this is not your exact requirement you can take some bits from it.

 

Result

rubin_boer_0-1641929394536.png

 

Steps

  • Add a collection to hold your data, 
ClearCollect(
    colPayments,
    ForAll(
        Sequence(12), //3 years with 4 payments
        {
            payment: yourPaymentValue,
            month: DateAdd(
                yourStartDatePicker.SelectedDate,
                Value * 4, //you wish to have 4 payments per month
                Months
            )
        }
    )
)
  • Add a horizontal gallery and set its Item = colPayments
  • Add two labels with Text values
    • lblDate = ThisItem.month
    • lblPayment = ThisItem.payment

The above will give you all the value in your collection.

 

To make it time relevant filter the collection

  • Filter(colPayments, month >= Today())

The above will onlydisplaythe dates which newer than the current date.

 

Hope this helps

R

 

View solution in original post

1 REPLY 1
rubin_boer
Super User
Super User

hi there @cnr 

 

Please find the following, the scenario is a loan amount, interest based on the term and the total repayment is divided by the term. This is them shown to the user base on date in reference to the payment term.

 

If this is not your exact requirement you can take some bits from it.

 

Result

rubin_boer_0-1641929394536.png

 

Steps

  • Add a collection to hold your data, 
ClearCollect(
    colPayments,
    ForAll(
        Sequence(12), //3 years with 4 payments
        {
            payment: yourPaymentValue,
            month: DateAdd(
                yourStartDatePicker.SelectedDate,
                Value * 4, //you wish to have 4 payments per month
                Months
            )
        }
    )
)
  • Add a horizontal gallery and set its Item = colPayments
  • Add two labels with Text values
    • lblDate = ThisItem.month
    • lblPayment = ThisItem.payment

The above will give you all the value in your collection.

 

To make it time relevant filter the collection

  • Filter(colPayments, month >= Today())

The above will onlydisplaythe dates which newer than the current date.

 

Hope this helps

R

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,587)