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