FUNCTION
accruedInterest
Returns the total amount received from a financial security at maturity <span align="right" style="background-color:99FF99"><strong>Excel: ACCRINTM</strong></span>
You're viewing an older version of this page (#299). View the current version.
Interface
#include <codecogs/finance/banking/accruedinterest.h>
using namespace Finance::Banking;
Returns the accrued interest for a security that pays interest at maturity.
The function is based on the following equation:
(1)
Where
- par is the current value of the security (if not specified,
1,000 if omitted)
Parameters
basis
is the day count basis, where
Blank
yb_USA = US (NASD) 30/360, yb_Act = Actual/actual yb_Act360 = Actual/360 yb_Act365 = Actual/365 yb_EU = European 30/360
Parameters
WorkLikeExcel
emulates Excel's "wrong" calculation
Blank
of Actual/actual; see documentation for details....
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.