Roth HSAs of such individual which is excludable from the taxpayer's gross income for such taxable year under section 106(d) (and such amount shall not be allowed as a deduction under subsection (a)), and (C) the aggregate amount contributed to Roth HSAs of such individual for such taxable year under section 408(d)(9) (and such amount shall not be allowed as a deduction under subsection (a)). Subparagraph (A) shall not apply with respect to any individual to whom paragraph (5) applies. (5) Special rule for married individuals In the case of individuals who are married to each other, if either spouse has family coverage— (A) both spouses shall be treated as having only such family coverage (and if such spouses each have family coverage under different plans, as having the family coverage with the lowest annual deductible), and (B) the limitation under paragraph (1) (after the application of subparagraph (A) and without regard to any additional contribution amount under paragraph (3))— (i) shall be reduced by the aggregate amount paid to Archer MSAs of such spouses for the taxable year, and (ii) after such reduction, shall be divided equally between them unless they agree on a different division. (6) Denial of deduction to dependents No contribution may be made to a Roth HSA under this section by any individual with respect to whom a deduction under section 151 is allowable to another taxpayer for a taxable year beginning in the calendar year in which such individual's taxable year begins. (7) Medicare eligible individuals The limitation under this subsection for any month with respect to an individual shall be zero for the first month such individual is entitled to benefits under title XVIII of the Social Security Act and for each month thereafter. (8) Increase in limit for individuals becoming eligible individuals after the beginning of the year (A) In general For purposes of computing the limitation under paragraph (1) for any taxable year, an individual who is an eligible individual during the last month of