It really depends on what flight and how many stops you take, but when I typed it into a search engine I found that it can range from 11 hrs, 30 min, to a full 24 hr day.
A direct flight from Johannesburg, South Africa to Madrid, Spain is approximately 10 hours, 2 minutes.
The total distance between Johannesburg and Madrid is 5030 miles on a direct course. The flight time between the two cities is almost 14 hours.
It is a 14 hour direct flight. Johannesburg (S.A) to Madrid (Spain)
About 15 hours.
About 21 hours.
About 9 hours.
4 hours
2 hours.
About 10 hours.
About 10 hours.
About 10 hours.
The total direct flight time between Johannesburg, South Africa, and Malaysia is about 10h 40min. This does not include the amount of time you may spend waiting at an airport for a connecting flight. The flight distance is 8,634.61 km.
About 14 hours.