We were invited to an iftar out of town and would have to stay a night there and leave the next day to attend. Would our fasts still be valid for both the day we arrive and the next day when we leave?

Depends on when you leave and when you come back