Not entirely sure if the title is a half-assed attempt to typosquat Thirty Days of Night or if The Asylum just decided to do a Biblical reference for the fun of it.
In any event, in the Sahara, a bunch of obnoxious American tourists are killed by an enormous wall of water. Back in the U.S., we learn that a massive storm is brewing that will cover and flood the entire Earth, rendering all land-based life extinct. Fortunately, the U.S. Navy is on the case and has spent the last two years secretly building a fleet of ten arks, each of which will carry 300 civilians, chosen by lottery in the ten launch cities, and the DNA of all land-based plants and animals. Unfortunately, building them is a three-year project -- why, they just invented the propulsion system this morning! And the storm is expanding exponentially, much faster than predicted. Only the prototype ark, being built at a secret Navy base high in the Rockies near Denver (but not to be confused with the Denver Ark) will be ready in time. Since this plot has to be stretched out over 40 days to live up to the title, what follows is a series of vignettes. The acceleration of the timeline means the DNA samples have to be shipped to the base from Denver, but a landslide strands the train partway there. The Admiral in charge of the project orders the Heroine -- the biologist responsible for repopulating the Earth after the flood -- and a Navy SEAL to fly out to the train by helicopter to pick up the samples. He sends the Hero -- the engineer in change of the propulsion system -- to fly to Illinois to pick up a part from a Navy shipyard. But, despite the fact that everybody involved is Navy, the project is so secret that the shipyard can't know they're getting the part, so they have to break in. The Hero's scuzzy Assistant calls his girlfriend in Pittsburgh to tell her the world is ending and she needs to get to St. Louis to get on the ark there. She grabs a couple family members, jumps in her car, and gets stuck in traffic, where she will surely die. Some random American cities get flooded and some random obnoxious white 20-somethings drown. The Heroine returns but was unable to save all the DNA samples -- critically, she had to flee before getting the honeybees, without which humanity will not survive. She and the SEAL are sent by helicopter to Denver, where they will pick up a C-130 and take it in search of cave bees. The girlfriend is not dead; her uncle has a boat that they will use to travel to Morgantown because the traffic will obviously be better there, particularly because they won't have a car, having abandoned that in Pittsburgh. Unfortunately, a huge wave sweeps down the river and they are killed. The Heroine and the SEAL find some cave bees but are flooded out before they can collect the hive, although the SEAL does recover three dead bees they can get DNA from (bee all you can bee and all that). The girlfriend -- who we'll refer to as Jean Grey from here on out -- and her family arrive in Morgantown with no explanation (and no car ... or boat). She falls in a sinkhole but is, of course, rescued. They team up with the refugees of Morgantown and travel to St. Louis by means of -- hey, look over there! More obnoxious white 20-somethings die as more random American cities are flooded. Jean Grey and friends arrive in St. Louis, travel to the ark site, and are killed by a giant wave which destroys the entire base. The Admiral discovers the St. Louis site has been destroyed and blames in the Assistant, since the wave obviously only came to St. Louis because it was following Jean Grey. He exiles the Assistant to take his chances in the lottery for the Denver Ark. The Heroine and the SEAL fly back to Denver only to discover it's underwater, along with their helicopter. They can fly the C-130 back to the base, but it doesn't have a runway, so they'll have to parachute out. They do, landing a couple miles from the base, where they are immediately accosted by Larry, Darryl, and Darryl, who decide a couple beautiful women are just the thing to liven up the apocalypse. Just as the SEAL is about to open a can of whoopass on their sorry redneck asses, a bunch of refugees from Denver show up and scare them away. In gratitude, the Heroine invites them back to the base, much to the SEAL's disgust. They arrive back at the base where, despite this being exactly the same thing he just exiled the Assistant for, the Admiral gives them a hero's welcome and offers them all guaranteed slots on the ark -- no lottery required. The refugees are moved into the guest quarters. The bees are taken to the lab. The Hero and his New Assistant install the drive. In his office, the Admiral hears a crash from outside. He hits the evacuation alarm, grabs his go bag, and strides confidently out of the movie, turning off the lights on the way out. Despite having spent the entire last two years preparing for the world to end, no one in the base is prepared for the world to end. Everyone runs around confusedly and ineffectually and half the base staff never make it aboard the ark. On the bridge, the Captain realizes that there's no way to open the launch doors from aboard the ark, despite the fact that it's drydocked in such a way that it can't move until the base is completely flooded, which you'd think someone might of thought of two years ago when they built the place. Fortunately, the ark survives crashing through the launch doors and makes it into the open ocean of the high Rockies. They take stock of the survivors: the Hero, Heroine, SEAL, and New Assistant made it aboard (off-camera); the Admiral did not (off-camera).The vignettes continue. The drive breaks down and Hero and New Assistant must fix it. The ark gets wedged between two mountain peaks and the SEAL must improvise explosives and go on a scuba drive to blast it free. The storm sails rip and the Hero, SEAL, and Random Black Sailor must climb the masts in the storm to fix it, which turns out exactly how you'd think (off-camera). On Day 40, the wind slows, the rain stops, the clouds break, and the radio stars working again so that we can learn that four other arks survived -- Denver (with Original Assistant, who apparently got a good lottery ticket), Minneapolis (with all the main characters' parents), St. Lous (with Jean Grey, her family, and all the Morgantown refugees because of fucking course), and San Antonio (because the world wouldn't be worth living in if there weren't still Texans). You might think a rainbow would be called for here, but apparently Yahweh threatened to sue for copyright infringement, so they settled for a torch song over the end credits instead.