You had better allow for up to three hours. You probably can do it in two hours, but one never knows how long the lines is at customs, then you have to wait for luggage and clear customs, and then recheck your bags and then take the shuttle train over to terminal 5/6. You should be safe with 2-3 hours.
You had better allow for up