* Country: Different countries have different compulsory education laws. Some mandate only a few years of primary school, while others require many more years including secondary and sometimes even some post-secondary education.
* Specific location within a country: Even within a single country, there can be variations in the required number of years based on state or province.
* Individual circumstances: Some individuals may have special needs or circumstances that alter the typical required years of schooling.
To find the required years of schooling, you need to specify the country and potentially the state/province you're interested in.