To unlock your iPhone 6 T-Mobile, you can contact T-Mobile customer service by dialing 611 after you’ve passed the 40-day mark. You can also walk into any T-Mobile corporate store for assistance.
Alternatively, you can use the IMEI number of your iPhone to process the request. You can dial “#06” on your iPhone to get it. Then go to www.doctorsim.com and select the model of your iPhone. Under network provider, select T-Mobile.
Please note that not all carriers will accept every unlocked phone, so if you already know which carrier you want to switch to, check with them to make sure your iPhone will work on their network.