The calculated distance (air line) between Tonyrefail and Cwmafan is approximately 14 miles respectively 23 kilometers.
By car or train, the actual journey to Cwmafan is certainly longer, as only the direct route (as the crow flies) between Tonyrefail and Cwmafan has been calculated here.
Air line (approximately)
23 kilometers
13 nautical miles