The computation of a foreigner's period of residence in the R.O.C. is based on the dates stamped on his/her passport or the Certificate of Entry and Exit Dates issued by the National Immigration Agency, Ministry of the Interior (excluding the date of arrival and including the date of departure). If a foreigner enters and exits this country a number of times within a taxable year, the period of residence shall be the total number of accumulated days.