It's usually expressed by the dative and then the number of years. If the number ends(or is) 1, then it is год. If it is 2,3,4, it is года. If it is 5 or above, it is лет. Don't ask why :D

Мне 24...