Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
PiaMethod::specMinYearsCal Method (double, DoubleAnnual&, int, DoubleAnnual&, IntAnnual&)

Calculates number of years of coverage, using passed argument for amounts required for coverage.

C++
static int specMinYearsCal(
    double pre1951, 
    const DoubleAnnual& earnings, 
    int year, 
    const DoubleAnnual& yocAmount, 
    IntAnnual& iordert
);
Parameters 
Description 
double pre1951 
Pre-1951 earnings. 
const DoubleAnnual& earnings 
Annual earnings, starting in 1951. 
int year 
Last year of earnings considered. 
const DoubleAnnual& yocAmount 
Amount required for year of coverage. 
IntAnnual& iordert 
1 if year of coverage, 0 otherwise, for years after 1950; total pre-1951 years of coverage for 1950. 

Number of years of coverage.

This version saves indicators for years used in the iordert argument.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!