How to calculate age through conditional fields?