# question

Accepted
5 0 2 4

## How to get Total Accrued Interest Amount over a period

Hi there,

I'm trying to compute the P/L value of a portfolio. I would need the "total accrued amount" for a fixed income security over a specific period.

For example, XS1700429480 (ISIN) has paid accrued interest of \$0.00325 over the period of Apr 1 to May 11, 2021. Is there a way to fetch this number?

The formula I'm using now is: (but it's not correct)

=TR("XS1700429480","sum(TR.FiAccruedInterest)","SDate=1/4/2021 EDate=11/5/2021","CODE=ISIN")

Thanks so much!

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Accepted
39.3k 77 11 27

@roman.wang01

There's no single function in Eikon that can return the number you're looking for. In order to calculate this number you need to generate bond cashflows (all coupon payments) between two dates, calculate accrued at the start and end dates and sum it all up.

BondReturnFromCoupon.zip

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi Alex, thanks for your reply! Can I check what is this "=BdCashFlows" function? The data don't show up on my end...I see all "#NAME?" instead!

capture.png (89.6 KiB)
roman.wang01

@roman.wang01

To enable BdCashflows and other Adfin functions click on Settings under Refinitiv Eikon tab in Excel ribbon. In the Settings window click on Memory Optimization. Under Memory Optimization make sure that the module named Adfin is on.

Alex Putkov.1

Thanks again for your reply! I do not have the Memory Optimization tab under my refinitiv settings. Is this something to do with my licence type, or the version of my refinitiv? I tried googling but can't really find an answer :-/

capture1.png (42.6 KiB)