Well my dear friend, with due respect, let me correct you that time is determined by the longitudes and not by international borders. Two countries may have same time. There is no formula, but if you know the names of the countries you can check the difference from this website.(click here) Hope it satisfies your question :)