The highest Social Security benefit comes down to earnings history and when you claim.