Looking for code to calculate APR
Posted on 2006-06-30
I am looking for code to calculate APR.
Specifically APR as defined in the UK by the FSA/OFT/DTI etc.
I have a feeling that it is done differently in the US.
I would prefer this in C# but I will accept offers in other languages as long as they don't use language specific functions (e.g. there are functions that do this built in to VB but they are no good to me).
For any given loan I have :
a - the loan amount
b - the number of payments
c - the interest rate
d - the total interest
e - the total repayment value
I just need the APR.