Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion anypia32/Anypia32.rc
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
LTEXT "Anypia Social Security Benefit",IDC_STATIC,40,10,119,8,SS_NOPREFIX
LTEXT "Calculator, version 2020.1",IDC_STATIC,40,25,119,8
LTEXT "Calculator, version 2021.1",IDC_STATIC,40,25,119,8
DEFPUSHBUTTON "OK",IDOK,178,7,32,14,WS_GROUP
END

Expand Down
14 changes: 7 additions & 7 deletions oactobjs32/include/BaseYearNonFile.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Declarations for the <see cref="BaseYearNonFile"/> class to manage the
// computation year stored internally.
//
// $Id: BaseYearNonFile.h 1.45 2019/10/28 10:27:10EDT 277133 Development $
// $Id: BaseYearNonFile.h 1.48 2020/11/16 09:21:27EST 277133 Development $

#pragma once

Expand All @@ -14,8 +14,8 @@
/// <summary>Manages the computation year for a pia program where it is
/// stored with the code.</summary>
///
/// <remarks>Currently <see cref="YEAR"/> is 2020 and <see cref="TR_YEAR"/>
/// is 2019. See <see cref="BaseYearFile"/> for a class where the computation
/// <remarks>Currently <see cref="YEAR"/> is 2021 and <see cref="TR_YEAR"/>
/// is 2020. See <see cref="BaseYearFile"/> for a class where the computation
/// year is stored on disk.</remarks>
///
/// <seealso cref="BaseYearFile"/>
Expand All @@ -24,16 +24,16 @@ class BaseYearNonFile : public BaseYear
public:
/// <summary>Year for which data has been stored.</summary>
///
/// <remarks>The value of 2020 means that the December 2019 benefit increase,
/// 2018 average wage, and 2020 wage base are available. This is updated in
/// <remarks>The value of 2021 means that the December 2020 benefit increase,
/// 2019 average wage, and 2021 wage base are available. This is updated in
/// October after the annual automatic adjustment announcement.</remarks>
static const int YEAR = 2020;
static const int YEAR = 2021;
/// <summary>Year of Trustees Report assumptions.</summary>
///
/// <remarks>This is updated when the TR is released, so it is equal to
/// <see cref="YEAR"/> from the TR date to the COLA update, and 1 less than
/// <see cref="YEAR"/> from the COLA update to the TR date.</remarks>
static const int TR_YEAR = 2019;
static const int TR_YEAR = 2020;
public:
BaseYearNonFile();
void read();
Expand Down
6 changes: 3 additions & 3 deletions oactobjs32/include/oactcnst.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Constants used in the various Oact C++ programs and utilities.
//
// $Id: oactcnst.h 1.19 2016/10/24 08:09:48EDT 277133 Development $
// $Id: oactcnst.h 1.20 2020/08/21 09:53:00EDT 729915 Development $

#pragma once

Expand All @@ -9,13 +9,13 @@
//
// <remarks>When using 57, data runs from January 1, 1975 through January 1,
// 2031.</remarks>
const int MAXYRSR = 57;
const int MAXYRSR = 62;

// <summary>Number of years of data in trust fund projections, during-year
// basis.</summary>
//
// <remarks>When using 56, data runs from 1975 through 2030.</remarks>
const int MAXYRSR1 = 56;
const int MAXYRSR1 = 61;

// <summary>Base year for trust fund projection arrays on January 1 basis.
// </summary>
Expand Down
25 changes: 14 additions & 11 deletions oactobjs32/piadata/awbidtnf.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Functions of the <see cref="AwbiDataNonFile"/> class to manage historical
// Social Security parameters stored with the code.
//
// $Id: awbidtnf.cpp 1.52 2019/10/28 10:27:09EDT 277133 Development $
// $Id: awbidtnf.cpp 1.53 2020/11/16 07:38:31EST 277133 Development $

#include <algorithm>
#include "AwbiDataNonFile.h"
Expand All @@ -11,18 +11,18 @@

using namespace std;

// <summary>Benefit increases, 1951-2019.</summary>
// <summary>Benefit increases, 1951-2020.</summary>
const double AwbiDataNonFile::cpiincData[] = {
0.0, 12.5, 0.0, 13.0, 0.0, 0.0, 0.0, 0.0, 7.0, 0.0,
0.0, 0.0, 0.0, 0.0, 7.0, 0.0, 0.0, 13.0, 0.0, 15.0,
10.0, 20.0, 0.0, 11.0, 8.0, 6.4, 5.9, 6.5, 9.9, 14.3,
11.2, 7.4, 3.5, 3.5, 3.1, 1.3, 4.2, 4.0, 4.7, 5.4,
3.7, 3.0, 2.6, 2.8, 2.6, 2.9, 2.1, 1.3, 2.4, 3.5,
2.6, 1.4, 2.1, 2.7, 4.1, 3.3, 2.3, 5.8, 0.0, 0.0,
3.6, 1.7, 1.5, 1.7, 0.0, 0.3, 2.0, 2.8, 1.6
3.6, 1.7, 1.5, 1.7, 0.0, 0.3, 2.0, 2.8, 1.6, 1.3
};

// <summary>Average wage index, 1937-2018.</summary>
// <summary>Average wage index, 1937-2019.</summary>
const double AwbiDataNonFile::fqData[] = {
1137.96, 1053.24, 1142.36, 1195.00,
1276.04, 1454.28, 1713.52, 1936.32, 2021.40,
Expand All @@ -40,10 +40,10 @@ const double AwbiDataNonFile::fqData[] = {
32921.92, 33252.09, 34064.95, 35648.55, 36952.94,
38651.41, 40405.48, 41334.97, 40711.61, 41673.83,
42979.61, 44321.67, 44888.16, 46481.52, 48098.63,
48642.15, 50321.89, 52145.80
48642.15, 50321.89, 52145.80, 54099.99
};

// <summary>OASDI taxable maximum, 1937-2020.</summary>
// <summary>OASDI taxable maximum, 1937-2021.</summary>
const double AwbiDataNonFile::baseOasdiData[] = {
3000.00, 3000.00, 3000.00, 3000.00,
3000.00, 3000.00, 3000.00, 3000.00, 3000.00,
Expand All @@ -61,20 +61,22 @@ const double AwbiDataNonFile::baseOasdiData[] = {
80400.00, 84900.00, 87000.00, 87900.00, 90000.00,
94200.00, 97500.00, 102000.00, 106800.00, 106800.00,
106800.00, 110100.00, 113700.00, 117000.00, 118500.00,
118500.00, 127200.00, 128400.00, 132900.00, 137700.00
118500.00, 127200.00, 128400.00, 132900.00, 137700.00,
142800.00
};

// <summary>HI taxable maximum, 1991-2020.</summary>
// <summary>HI taxable maximum, 1991-2021.</summary>
const double AwbiDataNonFile::baseHiData[] = {
125000.00, 130200.00, 135000.00, MAXEARN, MAXEARN,
MAXEARN, MAXEARN, MAXEARN, MAXEARN, MAXEARN,
MAXEARN, MAXEARN, MAXEARN, MAXEARN, MAXEARN,
MAXEARN, MAXEARN, MAXEARN, MAXEARN, MAXEARN,
MAXEARN, MAXEARN, MAXEARN, MAXEARN, MAXEARN,
MAXEARN, MAXEARN, MAXEARN, MAXEARN, MAXEARN
MAXEARN, MAXEARN, MAXEARN, MAXEARN, MAXEARN,
MAXEARN
};

// <summary>Old-law taxable maximum, 1937-2020.</summary>
// <summary>Old-law taxable maximum, 1937-2021.</summary>
const double AwbiDataNonFile::base77Data[] = {
3000.00, 3000.00, 3000.00, 3000.00,
3000.00, 3000.00, 3000.00, 3000.00, 3000.00,
Expand All @@ -92,7 +94,8 @@ const double AwbiDataNonFile::base77Data[] = {
59700.00, 63000.00, 64500.00, 65100.00, 66900.00,
69900.00, 72600.00, 75900.00, 79200.00, 79200.00,
79200.00, 81900.00, 84300.00, 87000.00, 88200.00,
88200.00, 94500.00, 95400.00, 98700.00, 102300.00
88200.00, 94500.00, 95400.00, 98700.00, 102300.00,
106200.00
};

/// <summary>Initializes historical parameters info, where the last year of
Expand Down
53 changes: 27 additions & 26 deletions oactobjs32/piadata/awincnf.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Functions for the <see cref="AwincNonFile"/> class to manage average
// wage increases stored in static arrays.

// $Id: awincnf.cpp 1.80 2019/10/28 10:27:09EDT 277133 Development $
// $Id: awincnf.cpp 1.82 2020/11/16 07:38:32EST 277133 Development $

#include <algorithm>
#include "AwincNonFile.h"
Expand All @@ -13,7 +13,7 @@

using namespace std;

// <remarks>Historical average wage increases, 1978-2018.
// <remarks>Historical average wage increases, 1978-2019.
// When updating in November, add a value to this array.</remarks>
const double AwincNonFile::awincHist[] = {
7.941048, 8.747891, 9.007392,
Expand All @@ -24,45 +24,46 @@ const double AwincNonFile::awincHist[] = {
2.385645, 1.002888, 2.444538, 4.648767, 3.659027,
4.596306, 4.538179, 2.300406, -1.508069, 2.363503,
3.133333, 3.122550, 1.278133, 3.549622, 3.479039,
1.130011, 3.453260, 3.624486
1.130011, 3.453260, 3.624486, 3.747550
};

// <remarks>Titles for 2019 Trustees Report.</remarks>
// <remarks>Titles for 2020 Trustees Report.</remarks>
const std::string AwincNonFile::titletrOriginal[NUMASSUMSETS] = {
"2019 Trustees Report Alternative I, updated October 10, 2019",
"2019 Trustees Report Alternative II, updated October 10, 2019",
"2019 Trustees Report Alternative III, updated October 10, 2019",
"No increase beyond 2018 average wage"
"2020 Trustees Report Alternative I, updated October 13, 2020",
"2020 Trustees Report Alternative II, updated October 13, 2020",
"2020 Trustees Report Alternative III, updated October 13, 2020",
"No increase beyond 2019 average wage"
};

// <remarks>Average wage increases for 2019 Trustees Report,
// years 2019-2034.</remarks>
// <remarks>Average wage increases for 2020 Trustees Report,
// years 2020-2035.</remarks>
const double AwincNonFile::awincprojtrOriginal[NUMASSUMSETS][NUMPROJYEARS] = {
{ 5.298414, 6.486062,
6.006771, 5.487863, 5.269438, 5.277379, 5.344453,
5.413790, 5.454517, 5.255826, 5.156058, 5.136315,
5.136581, 5.144837, 5.146247, 5.138725
{ 4.652374,
5.781379, 5.585782, 5.001579, 4.991112, 5.007296,
5.018997, 5.082249, 5.096352, 4.965271, 4.898298,
4.885854, 4.890158, 4.891608, 4.886328, 4.873697

},
{ 3.995741, 4.701923,
4.464226, 4.219320, 4.102540, 4.153087, 4.206941,
4.243923, 4.257490, 4.016227, 3.909493, 3.891128,
3.892527, 3.901124, 3.902929, 3.898146
{ 3.507274,
4.440019, 4.107419, 3.842257, 3.794323, 3.818574,
3.845632, 3.890928, 3.884013, 3.721822, 3.653663,
3.642269, 3.647516, 3.648761, 3.644047, 3.632875
},
{ 2.716296, 1.080982,
2.794248, 3.551797, 3.513018, 3.481467, 3.366818,
3.275859, 3.244652, 2.910991, 2.676726, 2.653469,
2.657454, 2.666416, 2.669157, 2.665510
{ 1.640522,
0.246941, 3.118055, 3.138405, 3.170950, 3.044229,
3.022300, 3.020738, 2.893263, 2.605721, 2.423711,
2.406852, 2.413564, 2.415318, 2.410942, 2.402296
},
{ 0.0, 0.0,
{ 0.0,
0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0
0.0, 0.0, 0.0, 0.0, 0.0
}
};

// <summary>Ultimate average wage increases for 2019 Trustees Report.</summary>
// <summary>Ultimate average wage increases for 2020 Trustees Report.</summary>
const double AwincNonFile::awincult[NUMASSUMSETS] = {
5.0, 3.8, 2.6, 0.0
4.8, 3.5, 2.3, 0.0
};

/// <summary>Initializes projected average wage increase info with latest
Expand Down
44 changes: 20 additions & 24 deletions oactobjs32/piadata/biprojnf.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Functions for the <see cref="BiprojNonFile"/> class to manage projected
// benefit increases stored in arrays.
//
// $Id: biprojnf.cpp 1.81 2019/10/28 10:27:09EDT 277133 Development $
// $Id: biprojnf.cpp 1.83 2020/11/16 07:38:32EST 277133 Development $

#include <algorithm>
#include "BiprojNonFile.h"
Expand All @@ -14,37 +14,33 @@

using namespace std;

// <summary>Titles for 2019 Trustees Report</summary>
// <summary>Titles for 2020 Trustees Report</summary>
const string BiprojNonFile::titletrOriginal[NUMASSUMSETS] = {
"2019 Trustees Report Alternative I, updated October 10, 2019",
"2019 Trustees Report Alternative II, updated October 10, 2019",
"2019 Trustees Report Alternative III, updated October 10, 2019",
"No increase beginning with 2020 benefit increase"
"2020 Trustees Report Alternative I, updated October 13, 2020",
"2020 Trustees Report Alternative II, updated October 13, 2020",
"2020 Trustees Report Alternative III, updated October 13, 2020",
"No increase beginning with 2021 benefit increase"
};

// <remarks>Benefit increases for 2019 Trustees Report, 2020 to 2034</remarks>
// <remarks>Benefit increases for 2020 Trustees Report, 2021 to 2035</remarks>
const double BiprojNonFile::biprojtrOriginal[NUMASSUMSETS][NUMPROJYEARS] = {
{ 3.2,
3.2, 3.2, 3.2, 3.2, 3.2,
3.2, 3.2, 3.2, 3.2, 3.2,
3.2, 3.2, 3.2, 3.2 },
{ 2.7,
2.6, 2.6, 2.6, 2.6, 2.6,
2.6, 2.6, 2.6, 2.6, 2.6,
2.6, 2.6, 2.6, 2.6 },
{ 2.1,
2.0, 2.0, 2.0, 2.0, 2.0,
2.0, 2.0, 2.0, 2.0, 2.0,
2.0, 2.0, 2.0, 2.1 },
{ 0.0,
0.0, 0.0, 0.0, 0.0, 0.0,
{ 2.9, 3.0, 3.0, 3.0, 3.0,
3.0, 3.0, 3.0, 3.0, 3.0,
3.0, 3.0, 3.0, 3.0, 3.0 },
{ 2.5, 2.4, 2.4, 2.4, 2.4,
2.4, 2.4, 2.4, 2.4, 2.4,
2.4, 2.4, 2.4, 2.4, 2.4 },
{ 1.5, 1.6, 1.8, 1.8, 1.8,
1.8, 1.8, 1.8, 1.8, 1.8,
1.8, 1.8, 1.8, 1.8, 1.8 },
{ 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0 }
0.0, 0.0, 0.0, 0.0, 0.0 }
};

// <remarks>Ultimate benefit increases for 2019 Trustees Report.</remarks>
// <remarks>Ultimate benefit increases for 2020 Trustees Report.</remarks>
const double BiprojNonFile::biult[NUMASSUMSETS] = {
3.2, 2.6, 2.0, 0.0
3.0, 2.4, 1.8, 0.0
};

/// <summary>Initializes projected benefit increase info for latest Trustees
Expand Down
12 changes: 7 additions & 5 deletions oactobjs32/piadata/rtgenrl.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Functions for the <see cref="RtGeneral"/> class - parent of classes to
// manage one retirement test projection.

// $Id: rtgenrl.cpp 1.52 2019/10/28 10:27:09EDT 277133 Development $
// $Id: rtgenrl.cpp 1.53 2020/11/16 07:38:33EST 277133 Development $

#include "rtgenrl.h"
#include "Resource.h"
Expand All @@ -11,7 +11,7 @@

using namespace std;

// <summary>The age 62 monthly exempt amounts, 1951-2020.</summary>
// <summary>The age 62 monthly exempt amounts, 1951-2021.</summary>
const double Rtea62m::theAmts[] = {
50.0, 50.0, 75.0, 75.0, 80.0, // 1951-1955
80.0, 80.0, 80.0, 100.0, 100.0, // 1956-1960
Expand All @@ -26,9 +26,10 @@ const double Rtea62m::theAmts[] = {
890.0, 940.0, 960.0, 970.0, 1000.0, // 2001-2005
1040.0, 1080.0, 1130.0, 1180.0, 1180.0, // 2006-2010
1180.0, 1220.0, 1260.0, 1290.0, 1310.0, // 2011-2015
1310.0, 1410.0, 1420.0, 1470.0, 1520.0 // 2016-2020
1310.0, 1410.0, 1420.0, 1470.0, 1520.0, // 2016-2020
1580.0 // 2021
};
// <summary>The age 65 monthly exempt amounts, 1951-2020.</summary>
// <summary>The age 65 monthly exempt amounts, 1951-2021.</summary>
const double Rtea65m::theAmts[] = {
50.0, 50.0, 75.0, 75.0, 80.0, // 1951-1955
80.0, 80.0, 80.0, 100.0, 100.0, // 1956-1960
Expand All @@ -43,7 +44,8 @@ const double Rtea65m::theAmts[] = {
2083.33333, 2500.0, 2560.0, 2590.0, 2650.0, // 2001-2005
2770.0, 2870.0, 3010.0, 3140.0, 3140.0, // 2006-2010
3140.0, 3240.0, 3340.0, 3450.0, 3490.0, // 2011-2015
3490.0, 3740.0, 3780.0, 3910.0, 4050.0 // 2016-2020
3490.0, 3740.0, 3780.0, 3910.0, 4050.0, // 2016-2020
4210.0 // 2021
};

// <summary>Exempt amounts, 1961-1972.</summary>
Expand Down