This is a very general question as the time needed may vary by a language’s complexity and similarity to one’s mother tongue, among other factors.
Further discussion welcome in the comments.
In your opinion how many hours of output -conversation classes or speaking with friends/etc…- each week are necessary to maintain the ability to speak a language at a certain level?