The snail problem

A snail crawling up a pole 5 feet in length went up 4 feet each day and slid back 3 feet each night. How long would the snail take to go to the top? What if the pole were 7 feet in length? 28 feet? m feet?