Returns the accrued interest for a security that pays periodic interest