The calculated distance (air line) between Baku and Lerik is approximately 136 miles respectively 219 kilometers.
By car or train, the actual journey to Lerik is certainly longer, as only the direct route (as the crow flies) between Baku and Lerik has been calculated here.