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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

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,528
Messages
5,596,690
Members
414,088
Latest member
rodriboraun

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