Is there a mathematical equation one can use to understand just how funny something is? Perhaps, yes.
h = m * s
Where h = the pleasure we get
m = the degree of misinformation perceived
s = the extent to which the individual is susceptible to taking it seriously
In other words, "humour rewards us for seeing through misinformation that has come close to taking us in."