Hello Rob, "blank" should be "" not " " so try this small change

=IF(N5="",TODAY()-K5,N5-K5)