Residential status decides your tax rule in India. It depends on the number of days you stay here in a financial year. If you are a 'resident', your global income is taxed. If you are a 'non-resident', then tax is only on the income you earn in India.