Results 1 to 4 of 4
  1. #1
    MacAcc is offline Novice
    Windows 10 Access 2013
    Join Date
    Feb 2016
    Posts
    23

    how to calculate Accrued Interest in a table or query

    Hi, I need to calculate the accrued interest of a bond in a table (I guess it is the same in a qry). I have a table with all transactions on bonds (purchases and sales). The purchase amount is depending on the quantity and the Price. So far no problem.


    But when you buy a bond you need to pay to the seller the accrued interest of the bond. To calculate that I need to know how many days since last coupon payment date. So this is not a complete date (11/30/2012) but only (11/30). Today, being 2/24/2016 it would have to calculate the number of days since the last coupon payment date (11/30/2015) but next year it would have to calculate the days from 11/30/2016. Anyone know how to calculate a number of days since last time the date was 11/30?
    Thks in advance
    Markus

  2. #2
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    try

    CDate("11/30/" & year(Date())+(month(date())<12))

  3. #3
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    sorry - that just calculates the last 11/30

    use datediff

    datediff("d",CDate("11/30/" & year(Date())+(month(date())<12)),Date())

  4. #4
    MacAcc is offline Novice
    Windows 10 Access 2013
    Join Date
    Feb 2016
    Posts
    23
    tks a lot, will try.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Calculate Interest
    By jgelpi16 in forum Queries
    Replies: 3
    Last Post: 08-19-2016, 08:01 PM
  2. Replies: 8
    Last Post: 07-07-2014, 11:21 AM
  3. Replies: 2
    Last Post: 09-04-2013, 09:48 AM
  4. Calculating Interest with a Module
    By jgelpi16 in forum Modules
    Replies: 2
    Last Post: 09-30-2012, 05:08 AM
  5. Replies: 4
    Last Post: 08-30-2012, 07:58 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums