Create calendar analyzer for availabilities

Expression at 31, 26 should be on its own line.