I would like to discuss my unique tax situation for next years filing so I could prepare for tax scenario in advance and make sure all documentation/filing is done properly. I am currently on H1B in US and it expires in June 2018. Until that point, I will continue working in US (153 calendar days in 2018). Upon expiration of my work visa, I will be moving to India for couple months. I've worked out an arrangement with my employer to work remote. That being said, I would be working from India for 2-3 months. Here's the tricky part now. I had applied to Canadian residency and expect to obtain PR by August 2018. I plan on moving to Canada and settle there. Sorry if this has confused anyone but yeah, its lot of moving back between countries for me in coming year. So my questions are
1) For taxation purpose in US, I meet substantial presence test and will likely qualify as resident whereas in Canada, by virtue of my PR status, I will be considered resident there as well. Where should I file my taxes? US or Canada. If I need to file in US, do I still need to file taxes in Canada and under what filing status?
2) I have 401k account through my employer which I would like to collapse and bring it to Canada so I can manage it under one roof. Could you suggest a best strategy to minimize tax liabilities and how if I can claim foreign credit in Canada for taxes paid to IRS?
I understand there may not be easy answers but at least if someone could point me right direction to look for relevant material that would be helpful too.
Thank you in advance for your generous help!