how do i calculate advanced senior credit if married filing jointly and one spouse is 65 but the other one is not

How is the advanced senior credit calculated for married filing jointly when one spouse is 65 and the other is younger than 65?