Regarding CountryABC or CountryXYZ, they should be mentioned in the comment/reason section. So your Physical presence calculator should have an entry like:
From: Aug 3, 2015
To: Aug 15, 2015
Destination: USA
Reason: Visit friends / vacation. Also visited CountryABC from US from Aug 9, 2015 to...