You are generally considered a Taiwan tax resident under the 183-day test if you stay in Taiwan for 183 days or more during the same taxable year (January 1–December 31). Multiple stays during the year are accumulated.
https://www.etax.nat.gov.tw/etwmain/en/announcement/alien-individual-income-tax/instructions