/sleepcalc

Small node application that calculates the number of hours you need to sleep based on no trustworthy sources

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

sleepcalc


Assumed Equations:

y = ms_until_waking

x = ms_until_sleep

z = ms_sleep_needed

a = ms_since_awoke

y = x + z

z = (a + x) / 2

Derived Equations:

y = (3x + a) / 2

x = (2y - a) / 3