The lowest prices for flights with layovers are offered by Utair with a layover in Moscow. Tickets start at 357₼.
Aviasales.az suggests buying tickets from Ganja Ufa in advance in order to choose the conditions for your flight that best suit your preferences and budget.