     date = chrono.parseDate dateString
     if date
       timeOff msg, date
+    else
+      msg.send "Not sure what #{dateString} means"
+
+  robot.respond /who('s| is)( working)? (at|from) home$/i, (msg) ->
+    scheduleOccurences msg, new Date
+
+  robot.respond /who('s|'ll be| is| will be)( working)? (at|from) home (on)?(.*)$/i, (msg) ->
+    dateString = msg.match[5]
+    date = chrono.parseDate dateString
+    if date
+      scheduleOccurences msg, date
     else
       msg.send "Not sure what #{dateString} means"
 

# Commands:
#   hubot who's absent - Returns a list of users who are absent today.
#   hubot who'll be absent on <date> - Returns a list of users who will be absent on specified day.
#
# Author:
#   bogdal

appUrl = "https://#{companyName}.ionapp.com"

module.exports = (robot) ->

  robot.respond /who('s| is) absent$/i, (msg) ->
    timeOff msg, new Date

  robot.respond /who('s|'ll be| is| will be) absent (on)?(.*)$/i, (msg) ->
