Thank God, It's Doomsday

Homer sees a movie about the end of the world and fears the same thing will happen in real life after seeing a chain of random occurrences and doing a complicated math equation that predicts the end will come on May 18th.