Gửi tin nhắn: A generalized probabilistic formula relating occupant behavior to environmental conditions