edit: disregard the below -- sorry, didn't think that through re: order of precedence for leap year !!
if you needed to establish the decimal increment for your denominator (based on A1+A2) then perhaps:
Formula:
average days py
=365+SUM(MMULT((MOD(ROW(INDEX(A:A;YEAR(A1)+(TEXT(A1;"mmdd")>"0228")):INDEX(A:A;YEAR(A2)-(TEXT(A1;"mmdd")<="0228")));{400,100,4})=0)+0;{1;0;1}))/DATEDIF(A1;A2+1;"y")
so the SUM element is working out how many leap days fall within your date range, and the DATEDIF is used to determine yearly increment - i.e. 0.2 for sample dates
tbh, I am not sure how effective the denominator will be for partial year ranges, not tested...and there are no doubt more efficient methods.
Bookmarks