An individual would be a tax resident in Malaysia, based on the number of days he/she presented in Malaysia with few other factors.
Tax resident will subject to tax at scale rate; non-tax resident will tax at flat rate.
Example on tax exemption:
Employment income of a non-resident individual from the exercise of employment in Malaysia for a period or periods which do not exceed 60 days in a calendar year.
Retirement gratuity, if the retirement is:
Due to ill health
Employment with the same employer for at least 10 years, and:
After age of 55; or
Reaching compulsory age of retirement from employment; or
Age 50 to 55 pursuant to an employment contract / a collective agreement.
Compensation for loss of employment due to ill health.
Compensation for loss of employment or restrictive covenant of RM10,000 for each completed year if service with the employer.