Inspiration

This is a perfect tool for students or anyone in any profession that wants to know how much caffeine they can continue to consume to reap the benefits of caffeine without experiencing the unpleasant side effects. This can also be used for people with heart problems or other conditions that make it so they need to limit their caffeine intake.

What it does

Calculates how much caffeine is in the user's system, based of various factors, such as body weight and caffeine intake over time. The application will also provide the user with helpful advice, such as how much more caffeine they can consume before beginning to experience adverse side effects and how long it will take for caffeine to leave their system.

How we built it

JavaScript, HTML, and CSS

Challenges we ran into

It had been a while since I had worked with JavaScript, and I was doing some things that I had not done with JavaScript before, so it was a little difficult to manipulate the DOM in the intended way, and it took a substantial amount of time to debug these issues. The issues were mostly with dynamically adding the rows of user input boxes and getting the calculations to run, and also tweaking the calculations to be more accurate.

Accomplishments that we're proud of

The whole thing! But mostly the calculations themselves, as the exact equations were not online so I had to derive them myself.

What we learned

I got more comfortable with JavaScript and creating a web application.

What's next for Caffeine Tracker

In the future, we would like to expand upon the UI, be able to tell a user when they should stop consuming caffeine in order to fall asleep at a certain time, give advice for how much they should consume to function optimally at a certain time, and potentially adapt the algorithm to cater to a user's self-report of when they start feeling symptoms, and maybe include time statistics for users.

Built With

Share this project:

Updates