wow, I like the brain-teaser.
well, guess the answer is 8 days, or 9 days if the frog cannot get out when he is exactly at the edge of the well. That means when there is down, don't get worried. There will be a time that you can jump out of the well. so, keep your steps on.