The calculated distance (air line) between Qaffīn and Ramallah is approximately 38 miles respectively 60 kilometers.
By car or train, the actual journey to Ramallah is certainly longer, as only the direct route (as the crow flies) between Qaffīn and Ramallah has been calculated here.