For evening departures, 3 hours should be fine. But I wouldn't make it less than 3 hours. Between check in, paying the departure tax line, security line (usually is very quick) and (sometimes the worst) the exit migration line, you need the potential time.