The sensible answer to this question is that you should avoid drinking any alcohol before driving a vehicle, or make alternative arrangement such as taking public transport, taxis or using a designated driver.
Lots of websites will try and tell you the amount of each type of alcohol you can have and still safely drive but you should not trust this advice.