A worm is at the bottom of a 40m hole. It can crawl upwards at a rate of 4m in a day, but at night, it slips back 3m. At this rate, how many days will it take the worm to crawl out of the hole?