Welcome to the community, @Mario_Villalobos1! :grinning_face_with_big_eyes: Add the other date field into the initial AND() test. That will ensure that the difference is only calculated if both dates exist.
With many programming languages, the and operator (often represented as &&) will test each expression in order, and will return false once it encounters an expression that returns false (or false-equivalent). This can be useful because it means that not all of the expressions have to be tested in order to get a true/false result. I’m not sure if Airtable’s AND() function operates in the same way, but my gut says that it probably does, which would mean that it would return false to the surrounding IF() function the moment it finds a blank date field, and not even bother testing to see if the difference is less than 1.