I have a problem that I think can be solved by a maths formula but I am really not good enough to solve. So please feel free to impress me :)
My Problem :
Say I have a loan with a customer, that has a schedule like this :
01 Jan - Pay $100 to Customer
01 Feb - Customer Repays $20 (Loan Balance Now $80)
01 Mar - Customer Repays $20 (Loan Balance Now $60)
01 Apr - Customer Repays $20 (Loan Balance Now $40)
01 May - Customer Repays $20 (Loan Balance Now $20)
01 Jun - Customer Repays $20 (Loan Balance Now $0)
Total Loan Repaid : $100
All ok here, very simple example, but what if we want to accrue interest given the current balance over the amount of days, then add that value to what the customer should pay back on each repayment date?
Then it would look something like this :
01 Jan - Pay $100 to Customer
01 Feb - Customer Repays $20 + $5 Interest (Loan Balance Now $80)
01 Mar - Customer Repays $20 + $4 Interest (Loan Balance Now $60)
01 Apr - Customer Repays $20 + $3 Interest (Loan Balance Now $40)
01 May - Customer Repays $20 + $2 Interest (Loan Balance Now $20)
01 Jun - Customer Repays $20 + $1 Interest (Loan Balance Now $0)
Total Loan Repaid : $100
Total Interest Repaid : $11
Here you can see that the customer is still paying back the whole loan, and also the interest generated on the balance which as it gets smaller (due to the customer paying back the loan) the interest amount accrued gets smaller too. This is a bit more complicated but still ok.
The problem I am having is that I want each repayment to be the same value, so the customer always has to pay the same amount. The main issue with this is that as I raise the loan repayment amount then the loan balance drops more and the interest is less.
How can I maths out what the number will be for each repayment day that will mean paying off the entire loan but also include interest accrued and having the same repayment value each day.
Not sure if this is even possible, and the idea of using an annuity loan doesnt really work because of the mix of interest accrual on a running balance and a fixed repayment value.
For the example above I was able to trial and error the actual result but its a nightmare to do, and it still ends up with the last entry having a different repayment value:
01 Jan - Pay $100 to Customer
01 Feb - Customer Repays $19.54 + $1.02 Interest (Loan Balance Now $80.46)
01 Mar - Customer Repays $19.82 + $0.74 Interest (Loan Balance Now $60.64)
01 Apr - Customer Repays $19.94 + $0.62 Interest (Loan Balance Now $40.70)
01 May - Customer Repays $20.16 + $0.40 Interest (Loan Balance Now $20.54)
01 Jun - Customer Repays $20.54 + $0.21 Interest (Loan Balance Now $0)
Total Loan Repaid : $100
Total Interest Repaid : $2.99
If anyone can solve this then you are a god.