You may be considered a tax resident of Panama if you spend more than 183 days in the country, consecutive or non-consecutive, during the current fiscal year or the immediately preceding year. Tax residency may also arise if you establish a permanent home in Panama and meet the applicable personal-connection requirements.
https://dgi.mef.gob.pa/Ruc/Ruc-NTNatural
Panama Tax Resident
More than 183 days in Panama