Some tips why my code didnt count min?