Financial Financial Financial Financial Class

Definition

The Financial module contains procedures used to perform financial operations.

public ref class Financial sealed
[Microsoft.VisualBasic.CompilerServices.StandardModule]
public sealed class Financial
type Financial = class
Public Module Financial
Inheritance
FinancialFinancialFinancialFinancial
Attributes

Examples

This example uses the Rate function to calculate the interest rate of a loan, given the total number of payments (TotPmts), the amount of the loan payment (Payment), the present value or principal of the loan (PVal), the future value of the loan (FVal), a number that indicates whether the payment is due at the beginning or end of the payment period (PayType), and an approximation of the expected interest rate (Guess).

Sub TestRate()
    Dim PVal, Payment, TotPmts, APR As Double
    Dim PayType As DueDate

    ' Define percentage format.
    Dim Fmt As String = "##0.00"
    Dim Response As MsgBoxResult
    ' Usually 0 for a loan.
    Dim FVal As Double = 0
    ' Guess of 10 percent.
    Dim Guess As Double = 0.1
    PVal = CDbl(InputBox("How much did you borrow?"))
    Payment = CDbl(InputBox("What's your monthly payment?"))
    TotPmts = CDbl(InputBox("How many monthly payments do you have to make?"))
    Response = MsgBox("Do you make payments at the end of the month?", MsgBoxStyle.YesNo)
    If Response = MsgBoxResult.No Then
        PayType = DueDate.BegOfPeriod
    Else
        PayType = DueDate.EndOfPeriod
    End If
    APR = (Rate(TotPmts, -Payment, PVal, FVal, PayType, Guess) * 12) * 100

    MsgBox("Your interest rate is " & Format(CInt(APR), Fmt) & " percent.")
End Sub

Remarks

This module supports the Visual Basic run-time library members that perform financial calculations such as depreciation, present and future values, interest rates, rates of return, and payments.

Methods

DDB(Double, Double, Double, Double, Double) DDB(Double, Double, Double, Double, Double) DDB(Double, Double, Double, Double, Double) DDB(Double, Double, Double, Double, Double)

Returns a value specifying the depreciation of an asset for a specific time period using the double-declining balance method or some other method you specify.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FV(Double, Double, Double, Double, DueDate) FV(Double, Double, Double, Double, DueDate) FV(Double, Double, Double, Double, DueDate) FV(Double, Double, Double, Double, DueDate)

Returns a value specifying the future value of an annuity based on periodic, fixed payments and a fixed interest rate.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IPmt(Double, Double, Double, Double, Double, DueDate) IPmt(Double, Double, Double, Double, Double, DueDate) IPmt(Double, Double, Double, Double, Double, DueDate) IPmt(Double, Double, Double, Double, Double, DueDate)

Returns a value specifying the interest payment for a given period of an annuity based on periodic, fixed payments and a fixed interest rate.

IRR(Double[], Double) IRR(Double[], Double) IRR(Double[], Double) IRR(Double[], Double)

Returns a value specifying the internal rate of return for a series of periodic cash flows (payments and receipts).

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MIRR(Double[], Double, Double) MIRR(Double[], Double, Double) MIRR(Double[], Double, Double) MIRR(Double[], Double, Double)

Returns a value specifying the modified internal rate of return for a series of periodic cash flows (payments and receipts).

NPer(Double, Double, Double, Double, DueDate) NPer(Double, Double, Double, Double, DueDate) NPer(Double, Double, Double, Double, DueDate) NPer(Double, Double, Double, Double, DueDate)

Returns a value specifying the number of periods for an annuity based on periodic fixed payments and a fixed interest rate.

NPV(Double, Double[]) NPV(Double, Double[]) NPV(Double, Double[]) NPV(Double, Double[])

Returns a value specifying the net present value of an investment based on a series of periodic cash flows (payments and receipts) and a discount rate.

Pmt(Double, Double, Double, Double, DueDate) Pmt(Double, Double, Double, Double, DueDate) Pmt(Double, Double, Double, Double, DueDate) Pmt(Double, Double, Double, Double, DueDate)

Returns a value specifying the payment for an annuity based on periodic, fixed payments and a fixed interest rate.

PPmt(Double, Double, Double, Double, Double, DueDate) PPmt(Double, Double, Double, Double, Double, DueDate) PPmt(Double, Double, Double, Double, Double, DueDate) PPmt(Double, Double, Double, Double, Double, DueDate)

Returns a value specifying the principal payment for a given period of an annuity based on periodic fixed payments and a fixed interest rate.

PV(Double, Double, Double, Double, DueDate) PV(Double, Double, Double, Double, DueDate) PV(Double, Double, Double, Double, DueDate) PV(Double, Double, Double, Double, DueDate)

Returns a value specifying the present value of an annuity based on periodic, fixed payments to be paid in the future and a fixed interest rate.

Rate(Double, Double, Double, Double, DueDate, Double) Rate(Double, Double, Double, Double, DueDate, Double) Rate(Double, Double, Double, Double, DueDate, Double) Rate(Double, Double, Double, Double, DueDate, Double)

Returns a value specifying the interest rate per period for an annuity.

SLN(Double, Double, Double) SLN(Double, Double, Double) SLN(Double, Double, Double) SLN(Double, Double, Double)

Returns a value specifying the straight-line depreciation of an asset for a single period.

SYD(Double, Double, Double, Double) SYD(Double, Double, Double, Double) SYD(Double, Double, Double, Double) SYD(Double, Double, Double, Double)

Returns a value specifying the sum-of-years digits depreciation of an asset for a specified period.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also