The duration depends on your course. After finishing, there might be options to extend or switch visas.