There is no single answer; hours vary by writing style, genre, experience, and personal circumstances.
Factors influencing hours: genre popularity, experience (efficiency), personal enjoyment, financial pressure. Some write full-time; others a few hours weekly. The “right” amount is whatever works for the individual author.