You need to leave New Zealand or get a new visa before your student visa expires. Most often your visa will be dated to expire a short time after your course is due to end. Often your visa will expire on 31 March of the following academic year.