Two years should be a good enough time to learn Spanish well enough to get around in a Spanish-speaking country. However, to be fluent you will have to work dedicatedly on learning Spanish the right way.
There are three keys to learning Spanish and really any language…
If you set yourself realistic, measurable, short and long term goals, plan your 2 years and study regularly, two years is more than sufficient time to learn any language. While the correct methodology will empower you in 6 months to a reasonable learning ability, not taking the correct measures might take you way more than 2 years, or it might even take forever.
You would need to spend time learning it every day. Earmark at least 5 hours a week to begin with gradually raising it to 10 and so on and so forth. Studying consistently! Learning on weekends will do no good as compared to learning every day. Identify the real need, the driving reason, your motivation or your passion to learn the language. Only a real passion, with lots of hard work, will be able to help you achieve your target goal. If you won’t be learning it every day, two or more years, nothing will be enough. Regularity is important. You can take an intensive course in the first month, get to a decent level, and then forget everything during the next 23 months if you don’t come back to the language!

Immerse yourself in a Spanish environment wherever you are. Create a small Spanish corner at home. Put up important pics with their Spanish names. Label all objects at home with the respective Spanish words so that you do not have to translate from your native language into Spanish and you can identify those objects with their respective Spanish names.
Find yourself a conversation partner, somebody in and around your neighbourhood, who can talk to you in Spanish and help you improve your Spanish. If however, you are unable to find one I recommend you volunteer for Spanish community services to find a Spanish speaker who could help you or go shopping in a Spanish store, that would force to read labels in Spanish, besides talking to the staff in Spanish and who knows you may be able to get a Spanish speaker who is willing to help you improve your Spanish from the customers!
If none of these work then I suggest you go online to sites such as conversationpartners, languagepartners, Hello Talk, Italki to find a conversation partner for yourself, who can help you improve your spoken language and correct you.
Listen to Spanish music only, write a daily journal or diary in Spanish gathering all those words which are used in most common conversations every day.
Listening is ALWAYS key, you could opt for reliable online audio resources such as audiobooks, Spanish podcasts, News, Radio, Music Playlists in Spanish and many more.
Join online courses such as Baselang to make a head start!
Start the first half of the year listening to the language in as many audio forms that you can lay your hands on, speaking the language, laying greater emphasis on proper speech and accent, and the rest half in learning to master speaking Spanish with the accent marks.
Spanish is an easy to learn a phonetic language that should be able to inspire you to continue learning, pushing till your farthest end, exploring the best of your potential to speak, read, listen and write properly. These little victories will empower you to stay on track motivating you to stay connected with the language in some form or the other. Start the next half of the year intensively studying grammar. Spend the rest half mastering the Spanish accent or learning the Mexico-Spanish ‘dialect’!
Further sharpen your learning with apps such as Duolingo, Google translate, etcetera. For tracking your progress you can use an app similar to ‘toggl’ to track your time on different tasks.
