Create Amortization_function.R

Hi Adam,

Please review the amortization function. 

Thanks,

Nan
Why does the user need to provide the number of installments, when they provide the installment due dates? Can't you determine the number of installments based off how many due dates there are?