Click here to Skip to main content
13,836,713 members
Click here to Skip to main content
Add your own
alternative version


14 bookmarked
Posted 29 Nov 2004

BAC Calc

, 29 Nov 2004
Rate this:
Please Sign up or sign in to vote.
Blood-alcohol level calculator.

Sample Image


A handy-dandy blood-alcohol calculator. Obviously, this isn't to be used as an accurate measuring device, just rough estimate.


Found a picture here that had a BAC formula, so I coded it for weekend use.

Using the code

Change the values as needed, your estimated BAC will update automagically. Here's the formula, for the curious.

(Number of drinks / 2) * (9 / Weight for Men  OR 7.5 / 
             Weight for Women) - (.016 * Hours Drinking) = BAC

Points of Interest

Setting all controls on the forms' 'value changed' (or equivalent) to the same 'calc()' function made for little code.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Adam McKee
Software Developer (Senior)
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

QuestionCode Comments? Pin
ARMWare2-Dec-04 16:41
memberARMWare2-Dec-04 16:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web03 | 2.8.190114.1 | Last Updated 30 Nov 2004
Article Copyright 2004 by Adam McKee
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid