subsection (b)— (A) who dies while a judge or magistrate judge of the Tax Court after having rendered at least 18 months of civilian service computed as prescribed in subsection (n), for the last 18 months of which the salary deductions provided for by subsection (c)(1) or the deposits required by subsection (d) have actually been made or the salary deductions required by the civil service retirement laws have actually been made, or (B) who dies by assassination after having rendered less than 18 months of civilian service computed as prescribed in subsection (n) if, for the period of such service, the salary deductions provided for by subsection (c)(1) or the deposits required by subsection (d) have actually been made. (3) Termination of annuity (A) Surviving spouse The annuity payable to a surviving spouse under this subsection shall be terminable upon such surviving spouse’s death or such surviving spouse’s remarriage before attaining age 55. (B) Surviving child Any annuity payable to a child under this subsection shall be terminable upon the earliest of— (i) the child attainment of age 18, (ii) the child’s marriage, or (iii) the child’s death, except that if such child is incapable of self-support by reason of mental or physical disability the child’s annuity shall be terminable only upon death, marriage, or recovery from such disability. (C) Dependent child after death of surviving spouse In case of the death of a surviving spouse of a judge or magistrate judge of the Tax Court leaving a dependent child or children of the judge or magistrate judge of the Tax Court surviving such spouse, the annuity of such child or children shall be recomputed and paid as provided in paragraph (1)(C). (D) Recomputation with respect to other dependent children In any case in which the annuity of a dependent child is terminated under this subsection, the annuities of any remaining dependent child or children based upon the service of the same judge or magistrate judge of the Tax Court shall be recomputed and paid as though