Calculate Sleep & Wakeup Time