Financial.Rate メソッドとは? わかりやすく解説

Financial.Rate メソッド

投資期間を通じて利率指定する Double 型の値を返します

名前空間: Microsoft.VisualBasic
アセンブリ: Microsoft.VisualBasic (microsoft.visualbasic.dll 内)
構文構文

Public Shared Function Rate
 ( _
    NPer As Double, _
    Pmt As Double, _
    PV As Double, _
    <OptionalAttribute> Optional FV As
 Double = 0, _
    <OptionalAttribute> Optional Due As
 DueDate = DueDate.EndOfPeriod, _
    <OptionalAttribute> Optional Guess As
 Double = 0.1 _
) As Double
public static double Rate (
    double NPer,
    double Pmt,
    double PV,
    [OptionalAttribute] double FV,
    [OptionalAttribute] DueDate Due,
    [OptionalAttribute] double Guess
)
public:
static double Rate (
    double NPer, 
    double Pmt, 
    double PV, 
    [OptionalAttribute] double FV, 
    [OptionalAttribute] DueDate Due, 
    [OptionalAttribute] double Guess
)
public static double Rate (
    double NPer, 
    double Pmt, 
    double PV, 
    /** @attribute OptionalAttribute() */ double FV, 
    /** @attribute OptionalAttribute() */ DueDate Due, 
    /** @attribute OptionalAttribute() */ double Guess
)

パラメータ

NPer

必須投資期間全体での支払い回数合計を示す Double 型の値。たとえば、4 年間、月々分割払い自動車ローン利用した場合合計で 4 × 12 (= 48) の返済期間があることになります

Pmt

必須毎回支払い額を示す Double 型の値。通常支払い額には元金利息含まれます。支払い額を投資間内変更することはできません。

PV

必須現在の投資額、つまり将来行われる一連の支払い受け取り現時点一括し場合合計金額を示す Double 型の値。たとえば、自動車購入するために資金借り入れた場合ローン金額は、毎月返済対象となる貸手にとっての現在価値表します

FV

省略可能。投資将来価値、つまり最後支払い行った後に残る現金収支を示す Double 型の値。たとえば、ローン将来価値は 0 です。最終支払い後の価値であるためです。ただし、子供教育費のため、18 年間かけて 50 万円貯金する場合、この 50 万円将来価値なります省略した場合、0 が使用されます。

Due

省略可能。支払い期日を示すオブジェクト型 DueDate 列挙型 の値。各期の期末支払場合DueDate.EndOfPeriod を、各期の期首支払場合DueDate.BegOfPeriodそれぞれ引数指定します省略した場合は、DueDate.EndOfPeriod指定したものと見なされます

Guess

省略可能。Rate によって返される推定値を示す Double 型の値。省略した場合Guess0.1 (10%) を指定したものと見なされます

戻り値
投資期間を通じて利率指定する Double 型の値を返します

解説解説
使用例使用例

この例では、Rate 関数使用してローン利率計算します支払い回数 (TotPmts)、支払い額 (Payment)、現在価値または元金 (PVal)、将来価値 (FVal)、支払い期日 (PayType)、利率推定値 (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
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

Financial.Rate メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Financial.Rate メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS