A simple, bilingual (English/Español) web app to calculate the amount of an alcoholic beverage needed to reach a desired number of US standard drinks, with optional dilution calculation. Features excellent decimal precision.
👉 Website Link. 🇬🇧/🇪🇸
FOR EDUCATIONAL PURPOSES ONLY
- Calculate required beverage volume for a given ABV and number of US standard drinks.
- Dilution calculator: Find the final ABV after adding a mixer (e.g., juice).
- Bilingual UI: Switch between English and Spanish instantly.
- Python CLI scripts: The two original scripts, one in English and one in Spanish.
A US standard drink contains approximately 17.74 mL of pure ethanol (about the amount in a typical can of beer).
- Open
index.htmlin your browser. - Enter the ABV (%) of your beverage and the number of standard drinks you want (aka how many "beers" of it).
- Click Calculate.
- (Optional) Add a diluting agent and calculate the total ABV of your mix.
📚 Switch language using the buttons at the top right.
index.html/
index.css
js/
index.js
img/
screenshot.png
vodka.png
docs/
abv.py
abv-es.py
- English:
docs/abv.py - Spanish:
docs/abv-es.py
Run in your terminal:
python abv.py
# or
python abv-es.pyTo reduce the risk of harm from alcohol-related disease or injury, healthy men and women should drink no more than 10 standard drinks a week and no more than 4 standard drinks on any one day.
For more information, visit the Australian Health Department's website.
