The calculated distance (air line) between Homs and Maşyāf is approximately 32 miles respectively 51 kilometers.
By car or train, the actual journey to Maşyāf is certainly longer, as only the direct route (as the crow flies) between Homs and Maşyāf has been calculated here.