I used simple math. (Explaining simple math I used) Using math we can figure out the age of someone with just two simple variables. Can you guess them? They are the "Current Year" and the "Birth Year". In math you can subtract to find the difference, example: 50 - 25 = 25, 10 - 6 = 4. Your age is just the current year minus your birth year, you can try this right now, say I was born in 1940 then I would do 2023 - 1940 the result would be my age (if your interested in what my age would be if I was born that year just use the age guesser and see what my age would be).
I went through a lot of testing originally it was negating the ages, I just multiplied the answer by -1