3 years for fluency; Learned by myself. It was Japanese, not that difficult. You can try to look for materials on reddit, since there are many subreddits dedicated to learning specific languages. I usually look for word lists online and get my grammar polished on youtube. Flashcards are also nice for vocab.
When you've got the basics down, aka. the sentence structure, he/she/it/you/me/they/them, basic verb conjugations and a sizable enough vocabulary, feel free to just listen to podcasts or watch streamers in that language.
Good luck if you're planning to learn.

For people who have learned a new language, how long did it take you? Did you learn by yourself or take lessons somewhere?