how to calculate age using condition