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

Financial.PPmt メソッド

定期的な定額支払いおよび一定した利率基づいて指定された期間の元金支払いを示す Double 型の値を返します

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

Public Shared Function PPmt
 ( _
    Rate As Double, _
    Per As Double, _
    NPer As Double, _
    PV As Double, _
    <OptionalAttribute> Optional FV As
 Double = 0, _
    <OptionalAttribute> Optional Due As
 DueDate = DueDate.EndOfPeriod _
) As Double
Dim Rate As Double
Dim Per As Double
Dim NPer As Double
Dim PV As Double
Dim FV As Double
Dim Due As DueDate
Dim returnValue As Double

returnValue = Financial.PPmt(Rate, Per, NPer, PV, FV, Due)
public static double PPmt (
    double Rate,
    double Per,
    double NPer,
    double PV,
    [OptionalAttribute] double FV,
    [OptionalAttribute] DueDate Due
)
public:
static double PPmt (
    double Rate, 
    double Per, 
    double NPer, 
    double PV, 
    [OptionalAttribute] double FV, 
    [OptionalAttribute] DueDate Due
)
public static double PPmt (
    double Rate, 
    double Per, 
    double NPer, 
    double PV, 
    /** @attribute OptionalAttribute() */ double FV, 
    /** @attribute OptionalAttribute() */ DueDate Due
)

パラメータ

Rate

必須投資期間を通じて一定の利率を示す Double 型の値。たとえば、10%年率 (APR) で自動車ローン利用する際、毎月支払い指定した場合月々利率は 0.1/12 (0.0083) になります

Per

必須金利支払い額を求める期を示す、1 から NPer範囲Double 型の値。

NPer

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

PV

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

FV

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

Due

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

戻り値
定期的な定額支払いおよび一定した利率基づいて指定された期間の元金支払いを示す Double 型の値を返します

解説解説
使用例使用例

この例では、PPmt 関数使用して毎月支払い同額である場合特定の期間における元金計算します利率 (APR / 12)、元金支払い額を求める期 (Period)、支払い回数 (TotPmts)、現在価値または元金 (PVal)、将来価値 (FVal)、および支払い期日 (PayType) を指定します

Sub TestPPMT()
    Dim PVal, APR, TotPmts, Payment, Period, P, I As
 Double
    Dim PayType As DueDate
    Dim Msg As String
    Dim Response As MsgBoxResult

    ' Define money format.
    Dim Fmt As String =
 "###,###,##0.00"
    ' Usually 0 for a loan.
    Dim Fval As Double =
 0
    PVal = CDbl(InputBox("How much do you want to borrow?"))
    APR = CDbl(InputBox("What is the annual percentage rate of
 your loan?"))
    ' Ensure proper form.
    If APR > 1 Then APR = APR / 100
    TotPmts = CDbl(InputBox("How many monthly payments do you
 have to make?"))
    Response = MsgBox("Do you make payments at the end of month?",
 MsgBoxStyle.YesNo)
    If Response = MsgBoxResult.No Then
        PayType = DueDate.BegOfPeriod
    Else
        PayType = DueDate.EndOfPeriod
    End If
    Payment = Math.Abs(-Pmt(APR / 12, TotPmts, PVal, FVal, PayType))
    Msg = "Your monthly payment is " & Format(Payment,
 Fmt) & ". "
    Msg = Msg & "Would you like a breakdown of your principal
 and "
    Msg = Msg & "interest per period?"
    ' See if chart is desired. 
    Response = MsgBox(Msg, MsgBoxStyle.YesNo)
    If Response <> MsgBoxResult.No Then
        If TotPmts > 12 Then MsgBox("Only
 first year will be shown.")
        Msg = "Month  Payment  Principal  Interest"
 & vbNewLine
        For Period = 1 To TotPmts
            ' Show only first 12.
            If Period > 12 Then Exit
 For
            P = PPmt(APR / 12, Period, TotPmts, -PVal, FVal, PayType)
            ' Round principal.
            P = (Int((P + 0.005) * 100) / 100)
            I = Payment - P
            ' Round interest.
            I = (Int((I + 0.005) * 100) / 100)
            Msg = Msg & Period & vbTab & Format(Payment, Fmt)
            Msg = Msg & vbTab & Format(P, Fmt) & vbTab & Format(I,
 Fmt) & vbNewLine
        Next Period
        ' Display amortization table.
        MsgBox(Msg)
    End If
End Sub
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS