both need valid ssn.if either one is h4. Not qulified.irs will not caculate for you.use it or lose it.