As one deadline looms, the US and Iran are racing against another ticking clock.