Due to medical reasons, I had to extend my stay in India, during which I was on either on leave or on disability leave.
For most of the duration, I was earning USA salary, which further helped me retain the H1-b visa.

I was in India for nearly 180 days, starting April 1st until December 31st and remainder 90 or so days in USA.
Given the above situation, do I need to pay tax in one country or both? If I pay in both, wouldn't it be double taxation?

Please share your inputs and any knowledge that you may have, as it will help me greatly.
Thank you in advance.