dcsimg
Results 1 to 6 of 6

Thread: CPI inflation calculator

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2015
    Posts
    306

    CPI inflation calculator

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:08 AM.

  2. #2
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    5,627

    Re: CPI inflation calculator

    Hi dz32,

    At first glance, I thought this was an amortization/depreciation routine, and that possibly some of the built-in VB6 financial functions would do the same thing. You almost never hear those financial functions mentioned (FV, PV, Rate, etc.).

    However, then I downloaded and took at look at the project. And you're actually using estimated inflation/deflation rates from 1667 through 2028, and that's sort of cool.

    I suppose I'll still make a couple of suggestions though: 1) It'd be cool if you'd develop a bit of a GUI, possibly with starting year and ending year (and starting year could be either earlier or later than ending year). That way, we could see the value of a dollar at any point (past or future) estimated at any other year (past or future).

    And 2) it seems that the CBO just estimates an inflation rate of 2.4% after 2023. I'm wondering why, for anything after 2023, you didn't just let it go on to infinity, using that 2.4% estimate for all future years.

    Those seem that they would be nice improvements to this interesting project.

    Take Care,
    Elroy

    EDIT1: Also, just as another idea, VB6 has the nice feature whereby you can dimension an array to any arbitrary range you want. As such, it might be nice if you dimmed your rates array as: Private rates(1666 to 2028) As Double. That would just be a bit more in the spirit of self-documenting code. And also, then you could use LBound() and UBound() to check for valid bounds. Just thinking out-loud.
    Last edited by Elroy; Feb 8th, 2019 at 09:37 AM.
    Any software I post in these forums written by me is provided “AS IS” without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. Please understand that I’ve been programming since the mid-1970s and still have some of that code. My contemporary VB6 project is approaching 1,000 modules. In addition, I have a “VB6 random code folder” that is overflowing. I’ve been at this long enough to truly not know with absolute certainty from whence every single line of my code has come, with much of it coming from programmers under my employ who signed intellectual property transfers. I have not deliberately attempted to remove any licenses and/or attributions from any software. If someone finds that I have inadvertently done so, I sincerely apologize, and, upon notice and reasonable proof, will re-attach those licenses and/or attributions. To all, peace and happiness.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2015
    Posts
    306

    Re: CPI inflation calculator

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:08 AM.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2015
    Posts
    306

    Re: CPI inflation calculator

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:08 AM.

  5. #5
    Addicted Member
    Join Date
    Aug 2017
    Posts
    190

    Re: CPI inflation calculator

    Quote Originally Posted by dz32 View Post
    vb6 is a gift that keeps on giving
    Here's another one of VB6's well-kept secrets.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2015
    Posts
    306

    Re: CPI inflation calculator

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:08 AM.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width