Skip to content

Commit

Permalink
Handle people over 81
Browse files Browse the repository at this point in the history
  • Loading branch information
SemanticallyNull committed Nov 5, 2019
1 parent 35f475f commit 21f720d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Expand Up @@ -184,7 +184,8 @@ <h5><a target="_BLANK" href="https://www.mentalfloss.com/article/79211/biking-ma

distance = document.getElementById('distance').value;
days = document.getElementById('days').value;
yearsLeft = 81 - document.getElementById('yearsLeft').value;
age = document.getElementById('yearsLeft').value;
yearsLeft = (100-age)/2

carSingleHours = distance / 9.6;
bikeSingleHours = distance / 15;
Expand Down

0 comments on commit 21f720d

Please sign in to comment.