Formula For Calculating PTO Days

In excel, I need a cell to calculate the following formula for my paid time off spread sheet.
Earn 1 day per year for years 1 and two
Earn 2 days per year for every year after.

Thanks for any help you can give.

Here goes

assuming your date is in A1

=IF(DATEDIF(A1,TODAY(),"y")=1,1,IF(DATEDIF(A1,TODAY(),"y")=2,2, 2+ (DATEDIF(A1,TODAY(),"y")-2)*2))

Hope this helps