mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 15:54:13 +08:00
95 lines
5.1 KiB
HTML
95 lines
5.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>ACCRINT Function</title>
|
|
<meta charset="utf-8" />
|
|
<meta name="description" content="" />
|
|
<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
|
|
<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
|
|
<script type="text/javascript" src="../callback.js"></script>
|
|
<script type="text/javascript" src="../../../../../../common/main/resources/help/search/js/page-search.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="mainpart">
|
|
<div class="search-field">
|
|
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
|
|
</div>
|
|
<h1>ACCRINT Function</h1>
|
|
<p>The <b>ACCRINT</b> function is one of the <a href="../UsageInstructions/InsertFunction.htm#financial" onclick="onhyperlinkclick(this)">financial functions</a>. It is used to calculate the accrued interest for a security that pays periodic interest.</p>
|
|
<h3>Syntax</h3>
|
|
<p><b><em>ACCRINT(issue, first_interest, settlement, rate, par, frequency, [basis], [calc_method])</em></b></p>
|
|
<p>The <b>ACCRINT</b> function has the following arguments:</p>
|
|
<table style="width: 40%">
|
|
<tr>
|
|
<th style="background-color: #f4f4f4" width="150ch"><b>Argument</b></th>
|
|
<th style="background-color: #f4f4f4"><b>Description</b></th>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>issue</em></b></td>
|
|
<td>The issue date of the security.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>first_interest</em></b></td>
|
|
<td>The date when the first interest is paid.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>settlement</em></b></td>
|
|
<td>The date when the security is purchased.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>rate</em></b></td>
|
|
<td>The annual coupon rate of the security.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>par</em></b></td>
|
|
<td>The par value of the security. It is an optional argument. If it is omitted, the function will assume <b><em>par</em></b> to be $1000.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>frequency</em></b></td>
|
|
<td>The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>basis</em></b></td>
|
|
<td>The day count basis to use, a numeric value greater than or equal to 0, but less than or equal to 4. It is an optional argument. The possible values are listed in the table below.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>calc_method</em></b></td>
|
|
<td>A logical value that specifies the way to calculate the accrued interest when the <b><em>settlement</em></b> date is later than the <b><em>first_interest</em></b> date. It is an optional argument. TRUE (1) returns the accrued interest from <b><em>issue</em></b> to <b><em>settlement</em></b>. FALSE (0) returns the accrued interest from <b><em>first_interest</em></b> to <b><em>settlement</em></b>. If the argument is omitted, TRUE is used by default.</td>
|
|
</tr>
|
|
</table>
|
|
<p>The <b><em>basis</em></b> argument can be one of the following:</p>
|
|
<table style="width: 40%">
|
|
<tr>
|
|
<th style="background-color: #f4f4f4"><b>Numeric value</b></th>
|
|
<th style="background-color: #f4f4f4"><b>Count basis</b></th>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>0</em></b></td>
|
|
<td>US (NASD) 30/360</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>1</em></b></td>
|
|
<td>Actual/actual</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>2</em></b></td>
|
|
<td>Actual/360</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>3</em></b></td>
|
|
<td>Actual/365</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>4</em></b></td>
|
|
<td>European 30/360</td>
|
|
</tr>
|
|
</table>
|
|
<h3>Notes</h3>
|
|
<p>Dates must be entered by using the <a href="Date.htm" onclick="onhyperlinkclick(this)">DATE</a> function.</p>
|
|
<p><a href="../UsageInstructions/InsertFunction.htm#applyfunction" onclick="onhyperlinkclick(this)">How to apply</a> the <b>ACCRINT</b> function.</p>
|
|
<h3>Examples</h3>
|
|
<p>The figure below displays the result returned by the <b>ACCRINT</b> function.</p>
|
|
<p><img alt="ACCRINT Function" src="../images/accrint.png" /></p>
|
|
</div>
|
|
</body>
|
|
</html> |