Added initial functionality to zzz for calculating what time to wake up