Whether or not drunk driving is a DUI depends on local laws and regulations. In many countries and regions, the legal standard for drunk driving is based on the percentage of alcohol concentration (BAC) in the blood. Generally speaking, it is considered a drunk driving when the concentration of alcohol exceeds the limit set by law.
However, everyone metabolizes alcohol at a different rate, so it is not possible to give a specific time frame to answer the question "how long after drinking alcohol can you drive is not drunk driving". The rate at which alcohol is metabolized is affected by several factors, including the speed at which alcohol is consumed, how much alcohol is consumed, weight, gender, health status, and many more.
To avoid drunk driving, follow local laws and regulations and take the following steps:
Avoid drunk driving and try to separate drinking and driving.
If you plan to drink alcohol, arrange for a substitute driver, use a taxi or public transportation, or have someone who hasn't been drinking drive the car.
Know the legal standards for drunk driving in your country or region, and follow them strictly.
In conclusion, to ensure the safety of yourself and others, follow the local DUI laws and regulations, and wait enough time after drinking alcohol until you are fully regained and your alcohol concentration is below the legally prescribed limit before driving a motor vehicle.