First, a literal fly (the insect) cannot travel from Ghana to Thailand on its own – the distance is far beyond any insect's flying capability, and oceans separate the continents.
For people, a typical flight from Ghana (e.g., Accra) to Thailand (e.g., Bangkok) takes 12 to 15 hours with one or more layovers. There are no direct flights; common connections are via the Middle East (Doha, Dubai, Abu Dhabi) or Europe.