Collections:
Other Resources:
Day Count Programming Libraries
Is there any programming libraries that use Day Count Conventions to count days?
✍: FYIcenter.com
There are a number of programming libraries that you can use
to count days for interest calculation.
PHP Language: isda-day-count-convention - A PHP language package to calculate dates difference according to ISDA specification. It offers functions to support 4 Day Count Conventions: 30/360, 30E/360, 30E/360 Eurobond, and Actual/360.
$beginDate = new \DateTime('2007-02-28');
$endDate = new \DateTime('2007-03-31');
print ISDA::dateDiff30360($beginDate, $endDate); // 33 days
print ISDA::dateDiff30E360Isda($beginDate, $endDate); // 30 days
print ISDA::dateDiff30E360Eurobond($beginDate, $endDate); // 32 days
print ISDA::dateDiffActual360($beginDate, $endDate); // 31 days
R Language: BondValuation - A R language package for fixed coupon bond valuation allowing for odd coupon periods and various day count conventions. It offers the AccrInt() function that returns the amount of interest accrued from some starting date up to some end date and the number of days of interest on the end date. AccrInt() also returns the day count of the given period and day count convention.
(AccrInt, DaysAccrued) =
AccrInt(
StartDate = as.Date(NA),
EndDate = as.Date(NA),
Coup = as.numeric(NA),
DCC = as.numeric(NA),
RV = as.numeric(NA),
CpY = as.numeric(NA),
Mat = as.Date(NA),
YearNCP = as.Date(NA),
EOM = as.numeric(NA),
DateOrigin = as.Date("1970-01-01"),
InputCheck = 1
)
⇒ Terms Used in Day Count Conventions
⇐ Comparison of 30/360 Conventions
2026-02-09, ∼278🔥, 0💬
Popular Posts:
Collections: Day Count Convention What Is CUSIP US Fed CUSIP Search Stock Symbol Search Compare Stoc...
What are Historical Values of the US Prime Rates? Here are Historical Values of the US Prime Rates f...
What are Historical Values of the US Seasonally Adjusted MoM (Month over Month) Inflation Rates? Her...
What are Historical Values of the US Unadjusted MoM (Month over Month) Inflation Rates? Here are His...
If you are buying or selling a US Treasury Bill, you can use this online tool to calculate the price...