lib/smart_answer/calculators/state_pension_amount_calculator.rb
# these people get different starting credits based on when they were born and what they answer to Q10
these people get different starting credits based on when they were born and what they answer to Q10
these people get different starting credits based on when they were born and what they answer to Q10
def credit_bands
      [
        { min: Date.parse('1957-04-06'), max: Date.parse('1958-04-05'), credit: 1, validate: 0 },
        { min: Date.parse('1993-04-06'), max: Date.parse('1994-04-05'), credit: 1, validate: 0 },
        { min: Date.parse('1958-04-06'), max: Date.parse('1959-04-05'), credit: 2, validate: 1 },
        { min: Date.parse('1992-04-06'), max: Date.parse('1993-04-05'), credit: 2, validate: 1 }
      ]
    end
def credit_bands [ { min : Date . parse ( '1957-04-06' ) , max : Date . parse ( '1958-04-05' ) , credit : 1 , validate : 0 } , { min : Date . parse ( '1993-04-06' ) , max : Date . parse ( '1994-04-05' ) , credit : 1 , validate : 0 } , { min : Date . parse ( '1958-04-06' ) , max : Date . parse ( '1959-04-05' ) , credit : 2 , validate : 1 } , { min : Date . parse ( '1992-04-06' ) , max : Date . parse ( '1993-04-05' ) , credit : 2 , validate : 1 } ] end
these people get different starting credits based on when they were born and what they answer to Q10
these people get different starting credits based on when they were born and what they answer to Q10