# Snail in the well

Hi, I've seen a lot of answers on this and I mostly understand them, but they weren't my first thought. I appreciate that I'm sure my method is over complicated but because it's the way I thought of it first on my own id like to understand where I went wrong. If you're unfamiliar, there's a snail in a well of random depths in inches, it climbs 7 Inches each day and falls 2 inches every night, so I need to code something that figured out how many days it will take and I don't understand what's wrong with what I put. function main() { var depth = parseInt(readLine(), 10); //your code goes here var day = 0 for (;depth>=0;){ day++ depth+7 if (depth<=0){ break; } else { depth-2 } } console.log(day) }