sharetrader
Page 397 of 465 FirstFirst ... 297347387393394395396397398399400401407447 ... LastLast
Results 3,961 to 3,970 of 4649

Thread: Harmoney

  1. #3961
    Member
    Join Date
    Apr 2016
    Posts
    83

    Default

    Below is the sort of function im working to get the true number - can anybody see issue ? note the recursion.



    static public double CalcInterest(double InterestRate, int Months, double LoanAmount)
    {

    double TotalInterest = 0;

    for (int i = 1; i < Months + 1; i++)
    {

    double PmtValue = Financial.Pmt(InterestRate / 12, Months, -LoanAmount);
    double IPmtValue = Financial.IPmt(InterestRate / 12, i, Months, -LoanAmount);
    double PPmtValue = Financial.PPmt(InterestRate / 12, i, Months, -LoanAmount);

    TotalInterest += IPmtValue - ( (IPmtValue * 0.175) + (IPmtValue * 0.15) );

    if(PPmtValue + IPmtValue > 0.01)
    {
    TotalInterest = TotalInterest + CalcInterest(InterestRate, Months - i, IPmtValue + PPmtValue);
    }

    //Console.WriteLine("{0},{1},{2},{3}", i, PmtValue, PPmtValue, IPmtValue);

    }

    return TotalInterest;
    }

  2. #3962
    yeah, nah
    Join Date
    Mar 2017
    Posts
    491

    Default

    Maybe I'm not getting what you're trying to do but it is a very simple calculation for compound interest.

    A VB example here:
    http://www.vb-helper.com/howto_calculate_interest.html

  3. #3963
    Reincarnated Panthera Snow Leopard's Avatar
    Join Date
    Jul 2004
    Location
    Private Universe
    Posts
    5,861

    Default

    Quote Originally Posted by IntheRearWithTheGear View Post
    Below is the sort of function im working to get the true number - can anybody see issue ? note the recursion.

    static public double CalcInterest(double InterestRate, int Months, double LoanAmount)
    {

    double TotalInterest = 0;

    for (int i = 1; i < Months + 1; i++)
    {

    double PmtValue = Financial.Pmt(InterestRate / 12, Months, -LoanAmount);
    double IPmtValue = Financial.IPmt(InterestRate / 12, i, Months, -LoanAmount);
    double PPmtValue = Financial.PPmt(InterestRate / 12, i, Months, -LoanAmount);

    TotalInterest += IPmtValue - ( (IPmtValue * 0.175) + (IPmtValue * 0.15) );

    if(PPmtValue + IPmtValue > 0.01)
    {
    TotalInterest = TotalInterest + CalcInterest(InterestRate, Months - i, IPmtValue + PPmtValue);
    }

    //Console.WriteLine("{0},{1},{2},{3}", i, PmtValue, PPmtValue, IPmtValue);

    }

    return TotalInterest;
    }
    Surely what you do is this?

    Code:
    static public double CalcInterest(double yearlyInterestRateAsPercentage, int monthLengthOfLoan, double originalLoanAmount)
    {
      // 12: months, 100: percent to decimal
      double monthlyInterestRate = yearlyInterestRateAsPercentage/(12.0*100.0); 
    
      double monthlyRepayment = Financial.Pmt(monthlyInterestRate, monthLengthOfLoan, -originalLoanAmount);
    
      double totalRepayments = monthlyRepayment * monthLengthOfLoan;
    
      double totalInterest = totalRepayments - originalLoanAmount;
    
      return(totalInterest);
    }
    om mani peme hum

  4. #3964
    yeah, nah
    Join Date
    Mar 2017
    Posts
    491

    Default

    Why use PMT?

    It is a simple calculation:

    CompInt.jpg

    Note: The ^ is to the power of, if it's not obvious?
    Last edited by myles; 03-11-2018 at 11:09 PM. Reason: Note

  5. #3965
    Member
    Join Date
    Apr 2016
    Posts
    83

    Default

    in repy to Snow Leopard

    This one dosnt do the tax and fees for harmony. Where are you investing the returned capital and interest as the loan progresses ? ie the totalrepayments could be another loan at the same investment settings starting up as soon as its returned your account.

    I think a fault in my one is that it each "recursive loan" should be out to a full 60 months instead of a diminishing loan duration but the total interest from all subsquent loans should be to the end of the original 60 months.

    My original code is coming from the idea of being a borrower and summing the interest payments to the lenders as our "in theory" net income (not taking defaults into account).

    Food for thought.
    Last edited by IntheRearWithTheGear; 03-11-2018 at 11:15 PM.

  6. #3966
    yeah, nah
    Join Date
    Mar 2017
    Posts
    491

    Default

    No, the calculation is based on re-investment of the interest - since the Principal remains invested for the entire period it is equivalent to re-investing the Principal that would be returned (as per p2p lending)...

    Added: I think your reply may have been to Snow Leopard?

    The calculation I provided above is correct and as you can see it's quite simple, but ignores defaults. If you can determine a rate to use for defaults it can be easily added in - this is the difficult part, coming up with a reliable default rate.

    [Interest for Period - as I have it, has tax and fees taken out as per the Effective Rate.]
    Last edited by myles; 03-11-2018 at 11:29 PM. Reason: Post Confusion...

  7. #3967
    Member
    Join Date
    Jan 2018
    Posts
    48

    Default

    Quote Originally Posted by humvee View Post
    Well I've sent harmoney a large list of loans that have extremely obvious reporting errors

    Broken down into the following main areas

    Showing as Paid off but still owe money = 67
    Showing as Current but $0 owing = 54
    Negitative outstanding principal = 17


    They have said "The team has been made aware of the loan IDs and problems with each as detailed in your email and look to have this corrected soon. I don't have a timeframe at this stage as the list of loans with errors is, as stated, large."

    Only time will tell how long they will take to fix these
    Hi Humvee,
    Have you received any more correspondence regarding the errors you reported, or have you seen corrections come through in your reports section? Very curious to know how you got on.

  8. #3968
    Reincarnated Panthera Snow Leopard's Avatar
    Join Date
    Jul 2004
    Location
    Private Universe
    Posts
    5,861

    Default

    Quote Originally Posted by IntheRearWithTheGear View Post
    in repy to Snow Leopard

    This one dosnt do the tax and fees for harmony. Where are you investing the returned capital and interest as the loan progresses ? ie the totalrepayments could be another loan at the same investment settings starting up as soon as its returned your account.

    ...
    If that is what you want to calculate then as myles as said it is the simple compounding interest formula you need.

    Code:
    // monthlyRateOfReturn: monthly interest rate adjusted down for fees, taxes etc
    
    double totalInterest = (Math.Pow(1.0 + monthlyRateOfReturn, months) - 1.0) * originalLoanAmount;
    om mani peme hum

  9. #3969
    Member
    Join Date
    Aug 2017
    Posts
    212

    Default

    I'm intrigued to know - how does someone go about having 21 enquiries in the last 6 months??

    Not trying to denigrate HM/the borrower. Genuinely curious to understand how this arises

    Capture.JPG

  10. #3970
    Member
    Join Date
    May 2016
    Posts
    236

    Default

    Quote Originally Posted by leesal View Post
    I'm intrigued to know - how does someone go about having 21 enquiries in the last 6 months??

    Not trying to denigrate HM/the borrower. Genuinely curious to understand how this arises

    Capture.JPG
    They shopped around and 20 other lenders said NO or wanted higher interest?!!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •