android kotlin - app do not show me toast : i want when someone insert more than 3 number in month input, the Toast should show a error message, i try it and the app do nothing ! why ?(*i am beginner*)
another question how can i use try and catch with that ?
   

     @SuppressLint("SetTextI18n")
        fun onClickButton(view: View){
    
            getAGE.setOnClickListener {
                val Get_year_input = age_year_input.text.toString().toInt()
                val getCurrentYear = Calendar.getInstance().get(Calendar.YEAR)
                val finish_year_input = Get_year_input - getCurrentYear
                val getCurrentMonth = Calendar.getInstance().get(Calendar.MONTH)
                val finish_month_input = age_month_input.text.toString().toInt()-getCurrentMonth
                
                    if (age_month_input.length() > 2) {
    
                    Toasty.error(this,"لقد أدخلت شهر غير صالح",Toast.LENGTH_LONG)
    
                    }else {
    
                        ShowYearInput.text = " عُمرك الميلادي هو : $finish_year_input و $finish_month_input  أشهر "
    
                    }
    
            }
        }