Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_amort()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_AMORT()


Syntax:        L_AMORT(<expN1>,<expN2>,<expN3>,<expN4>)


Purpose:       Calculate the amortorisation of a loan.


Arguments:     <expN1> the loan principal amount

               <expN2> the interest rate per month.  If the interest
               rate is for the whole year first divide it by 12 and
               then divide it by 100.
               i.e. With a yearly interest rate of 14% the month
               interest would be
               (14/12)/100 = 0.0116666

               <expN3> the period in months over which the loan is to
               be repaid.

               <expN4> the number of loan repayments made so far which
               must be greater than or equal to 1.


Returns:       The amount of loan that still has to be paid.


Examples:      If you took out a loan for .10,000 which will be repaid
               over 5 years with a fixed interest rate of 13.5% per
               year. You have already made a two years worth of


               repayments. What would be the balance of the loan left
               to be repaid.

               amount   = 10000
               interest = (13.5/12)/100
               duration = 60
               paid     = 24

               ? L_AMORT(amount,interest,duration,paid)  && Result: 6780.51

Language:      C

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson