Results 1 to 6 of 6

Thread: Formula

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2010
    Posts
    1

    Post Formula

    hello...

    i`m doing vb in my college...
    my topic is monthly car installment...
    can anybody teach me the code for formula...
    like when people press the `calculate` button it will display the formula regarding the calculated amount of loan payment (how can get that value)

    my project is in the attachment..
    e.g
    total car price = 1000
    downpayment = 100
    interest = 3%
    duration = 12(monthly)
    total = 27.81

    *the formula how it counts to get the 27.81

    sory for bad english..
    thanx for the help...
    i really appreciate the help...
    Attached Files Attached Files

  2. #2
    Hyperactive Member
    Join Date
    Jan 2010
    Posts
    285

    Re: Formula

    instead put a frm here, put the entire code...
    It helps? So Rate it

  3. #3
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Formula

    That total ($27.81) is the total interest paid for the loan at 3% annual interest rate. This is a monthly compound interest. If you just Google for "compound interest formula", you should find the formula right away.
    And BTW, that value $27.81 is not correct. It should be $27.37.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Formula

    Based on the fact that you have attached a form that would only work in VB6 and Earlier I have moved your thread to this section.

  5. #5
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Formula

    Quote Originally Posted by helderjsd View Post
    instead put a frm here, put the entire code...
    That's a vb6 form & code file he posted, I've already notified the admins that the thread is in the wrong subforum here.

    Edit: and it's already moved, the price I pay for using tabbed browsing.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  6. #6
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Formula

    I'd change the formulas as follows:
    Code:
    'Calculation (Monthly payment is calculted using  CreditAmount*(1-(1 + InterestRatePerYear/PaymentsPerYear) ^(NumberofYears*PaymentsPerYear))
    
    
    douInterest = douInterest / 100
    a = curLoan - curDp
    b = 1 + douInterest/intMonth
    c = b ^ intMonth
    d = 1-c
    curInstallment = a*d
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

Posting Permissions

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



Click Here to Expand Forum to Full Width