To successfully make light of tragedy, humorists must make their jokes within a specific window of time after a threat has passed — not too close to the event, and not too much later. Article written by Tom Jacobs.
http://www.salon.com/2013/12/18/psychology_helps_explains_why_louis_c_k_is_so_funny_partner/