Simple Interest Calculation

bhaktany

New Member
Joined
Nov 3, 2005
Messages
7
Anyone know how to calculate interest for a mortgage? This is what I have so far but i cant get it to work. Any ideas on what I am doing wrong?

Dim perdiem As Double
Dim numdays As Long
Dim upb2 As Long
Dim intd As Date
Dim pr_rate As Double
Dim settledate As Date
Dim interestcalc As Long
loancount = Worksheets("Funding Memo").Range("D14")

Set loancount2 = Worksheets("MLS").Range("A1:A65000")
answer2 = Application.WorksheetFunction.Count(loancount2)

For a = 2 To answer2
upb2 = Worksheets("MLS").Columns("AF").Rows(2)
pr_rate = Worksheets("MLS").Columns("AH").Rows(2)
perdiem = Application.WorksheetFunction.Product(pr_rate, 0.00003)
intd = Worksheets("MLS").Columns("AD").Rows(2)
settledate = Worksheets("Funding Memo").Range("A3:A3")
numdays = Application.WorksheetFunction.Days360(intd, settledate)
interestcalc = Application.WorksheetFunction.Product(perdiem, numdays, upb2)
Worksheets("MLS").Columns("DI").Rows(2).Select
Selection = interestcalc
Next a
End
 

Some videos you may like

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Sharkie21

Active Member
Joined
Nov 2, 2005
Messages
319
Look in the Excel help and search interest. Hopefully one of those functions are the ones you are looking for, if not you'll need to explain what exactly you are looking for?

Interest between periods? accrued interest so far... etc
 

Watch MrExcel Video

Forum statistics

Threads
1,122,471
Messages
5,596,350
Members
414,060
Latest member
hermanseck

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top