The calculated distance (air line) between Dubrovnik and Danilovgrad is approximately 53 miles respectively 85 kilometers.
By car or train, the actual journey to Danilovgrad is certainly longer, as only the direct route (as the crow flies) between Dubrovnik and Danilovgrad has been calculated here.
Air line (approximately)
85 kilometers
46 nautical miles