Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Loan calculation sheet for several loans

Aqureshi025
8 - Asteroid

Hi All

 

I am looking for the help to prepare a loan amortization. I have the data  in the following format

 

NumberAmountNominal RateStart date of loanMaturity Date of loanDate Basis
A        700,000,000220/04/201729/04/2020Actual/360
B        500,000,000311/01/201811/01/2021Actual/365
C          10,000,000631/05/201930/04/2020Actual/360
D        450,000,000804/10/201930/09/2024Actual/360
E            7,000,000227/04/202028/08/2023Actual/365

 

I need to calculate the interest for each year. For e.g Loan A starting in 2017, so the column came in and shows me the result from 2017 then 2018 then 2019 and till 2020 until the maturity date. Means for the 2017 the interest will start from the date of loan start and for 2020 the interest will be until the maturity date. Same for all other loans. Looking something output like this - See attached file

 

 

Please suggest how to do it. I would prefer to do without any macros, just by using the standard tools

 

Your support will be really appreciated

3 REPLIES 3
jdunkerley79
ACE Emeritus
ACE Emeritus

I suggest something like:

jdunkerley79_0-1606140657845.png

 

- Use a generate rows to make the set of year ends for each row

- You can then compute the days in each year like:

DateTimeDiff(
Min([Maturity Date of loan],[YearEnd]),
Max([Start date of loan],DateTimeTrim([YearEnd],"year")),
"days")

- After that you can compute the interest for that year:

Round([Nominal Rate]/100*[Amount]*[Days]/ToNumber(Right([Date Basis],3)),0.01)

(I rounded to nearest 0.01 but change as you need)

- Finally cross tab to get the correct layout

 

Sample attached

Aqureshi025
8 - Asteroid

Thanks. But in your workflow the loan in which they are matured no interest is calculated for that year. for e.g loan A is matured in 29/4/2020 so I would expect some interest for 4 months of 2020 aswell

jdunkerley79
ACE Emeritus
ACE Emeritus

Sorry there was a bug in the generate rows tool.

 

Attached fixed version.

Labels