Earth is approx 93 million miles from the sun
Mars is approx 142 million miles from the sun
If you time your journey so that the shortest possible journey is made, that is when Mars and Earth are on the same side of the sun, the distance travelled is approx 142 - 93 = 49 million miles which at 40000 mph would take (49 x 106) ÷ 40000 hours = 1225 hours or about 51 days.
If you time your journey so that the longest possible straight line journey is made, that is when Mars and Earth are on opposite sides of the sun (with a trip through the sun), the distance travelled is appox 142 + 93 = 235 million miles which at 40000 mph would take (235 x 106) ÷ 40000 hours = 5875 hours or about 245 days.*
So the journey from Earth to Mars at 40000 mph would take somewhere between approx 1225 hours (51 days) and approx 5875 hours (245 days).
*Obviously you can't go through the sun, but this also assumes that the sun has no diameter - it's diameter is approx 0.8 million miles, adding an extra 21 hours or nearly a day.
900 hours. Time = Distance / Speed 36,000,000 miles/ 40,000 m.p.h 900 hours.
The trip would take 37.5 days if you maintained that speed over the whole distance.
The Earth travels at about 66000 miles per hour around the sun, much faster than the speed of sound which is about 750 miles per hour. Even as the Earth rotates, a point on the equator travels at a little over 1000 miles per hour so parts of the planet are faster than the speed of sound even without the orbit around the sun.
Just divide the distance by the speed. If the distance is in miles, and the speed in miles/hour, the time will be in hours - which you can then easily convert to days.
Abut 7 miles per hour.
The linear speed of the Earth's rotation at any latitude can be calculated by multiplying the cosine of the latitude by the equatorial rotational speed of the Earth, which is approximately 1670 kilometers per hour (1037 miles per hour). At latitude 60.24 degrees north, the linear speed of the Earth's rotation would be approximately 835 kilometers per hour (519 miles per hour).
6200 miles per day = 258.3 miles/hour.
The Earth's speed relative to the center of the galaxy is approximately 514,000 miles per hour.
The speed of the moon as it travels around the earth is approximately 2,288 miles per hour.
The rotation speed of the Earth varies with latitude due to its spherical shape. At 28 degrees latitude, the rotational speed is approximately 800 miles per hour (about 1,287 kilometers per hour). This speed is lower than at the equator, where it reaches about 1,670 kilometers per hour (1,040 miles per hour) due to the Earth's curvature.
Distances between to places on earth and speed (miles per hour).
Earth is revolving around the sun at an average speed of about 67,000 miles per hour. Additionally, our solar system is moving through the Milky Way galaxy at roughly 514,000 miles per hour. In total, Earth is moving through space at over 580,000 miles per hour.