Confused about the days ?

Does it matter the time of the day you had intercourse on your highest fertility day ? Does having sex at 12 count for the next day or same day ?