Which of the following factors is taken into account when determining whether any social security benefits are taxed: