Results 1 to 13 of 13

Thread: Calculate Recision Date

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Question Calculate Recision Date

    Hi all,

    Long time, no see. I am not sure how to approach this specific task and would like your feedback on this. I have a Month Calendar on my form. The automatic date is set to the current date. What I need to accomplish is to calculate the rescission date. The date is always three days in the future from the current date (excluding the current date); however, the amount of days in the future never includes holidays or weekends, so if there are holidays and/or weekends, these days are skipped from the calculation.

    As an example. if today is 11/16/2014 and there are no holidays or weekends, the rescission date would then be 11/19/2014. If Monday 11/17/2014 was a holiday, then the rescission date would be 11/18/2014, etc.

    If I recall, you can check to see if the date is a weekend, BUT, can you check to see if the date is a holiday? Maybe I would need to store these dates in a database?

    Any ideas as to go about this?

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: Calculate Recision Date

    some holiday dates aren't fixed and need to be calculated year by year

  3. #3
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,517

    Re: Calculate Recision Date

    If Monday 11/17/2014 was a holiday, then the rescission date would be 11/18/2014, etc.
    If you don't count the holiday, then wouldn't the recission date be 11/20/2014? Or did I misunderstand?

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Calculate Recision Date

    Quote Originally Posted by wes4dbt View Post
    If you don't count the holiday, then wouldn't the recission date be 11/20/2014? Or did I misunderstand?
    If the holiday is within the three day range from the current date (current date excluded), then those federal holidays and/or weekends are eliminated, so then the date would be the next day after the holiday or weekend or both.

  5. #5
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,517

    Re: Calculate Recision Date

    Quote Originally Posted by BrailleSchool View Post
    If the holiday is within the three day range from the current date (current date excluded), then those federal holidays and/or weekends are eliminated, so then the date would be the next day after the holiday or weekend or both.
    So instead of 3 business days, the rescission date is one business day. Sorry I don't have an answer but it's an interesting question. Good luck

  6. #6
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,517

    Re: Calculate Recision Date

    I got curious and did a little google to this link http://truthfullending.com/3-day-right-of-rescission/

    Maybe your doing something completely different, but it has this example
    Another Example
    Now let’s say you sign your loan documents on Friday, but the following Monday is a federal holiday. Your rescission period begins the day after signing, which would be Saturday in this case. We skip Sunday, but we also skip Monday since it’s a federal holiday. So day 2 would be Tuesday, and day 3 would be Wednesday. You would have until Wednesday at midnight to rescind in this example.

  7. #7
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: Calculate Recision Date

    For help calculating holiday dates, have a look at my dropdown calendar control:

    http://www.vbforums.com/showthread.p...lendar-control

  8. #8

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Calculate Recision Date

    Quote Originally Posted by wes4dbt View Post
    I got curious and did a little google to this link http://truthfullending.com/3-day-right-of-rescission/

    Maybe your doing something completely different, but it has this example
    Yes, this is what I am needing to calculate and wonder what the best way would be. The date would display in a label beneath the Month View based on the current date on form load or a date specified by the user when they select/click on a date on the Month View.

  9. #9

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Calculate Recision Date

    Quote Originally Posted by .paul. View Post
    For help calculating holiday dates, have a look at my dropdown calendar control:

    http://www.vbforums.com/showthread.p...lendar-control
    Will do, thanks.

  10. #10
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,517

    Re: Calculate Recision Date

    I found a couple of example of perpetual calenders (they are in C)
    http://www.codeproject.com/Articles/...at-least-until
    http://www.codeproject.com/Articles/...lendar-control

    But as .paul said some holidays are on different days of the year. Seem like the holiday dates my need to be loaded with a yearly update function.

  11. #11
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,517

    Re: Calculate Recision Date

    Are you only interested in Federal Holidays? If so, I was able to find some example using Google.

  12. #12

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Calculate Recision Date

    Quote Originally Posted by wes4dbt View Post
    Are you only interested in Federal Holidays? If so, I was able to find some example using Google.
    Just U.S.A. holidays.
    I am doing more research regarding this. Seems it won't be an easy task to implement in the Notary Signing Agent app I am writing.

  13. #13
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Calculate Recision Date

    For Holidays see:

    Holidays
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width