Rust is hydrated iron (III) oxide, which is formed from the reaction between iron, water and oxygen. The speed of the reaction depends on several factors including the concentration of dissolved...
When you ask "rust" you must be implying that the nail is made of iron; not steel, aluminum, zinc, or other metals. It would depend on exposure of the nail to the environment, more specifically...