adding method to calculate repayment with fixed periodic payment