def get_act_act(self, end):
<EOL>if end.year - self.year == <NUM_LIT:0>:<EOL><INDENT>if BusinessDate.is_leap_year(self.year):<EOL><INDENT>return BusinessDate.diff_in_days(self, end) / <NUM_LIT>  <EOL><DEDENT>else:<EOL><INDENT>return BusinessDate.diff_in_days(self, end) / <NUM_LIT>  <EOL><DEDENT><DEDENT>else:<EOL><INDENT>rest_year1 = BusinessDate.diff_in_days(self, BusinessDate(<EOL>date(self.year, <NUM_LIT:12>, <NUM_LIT>))) + <NUM_LIT:1>  <EOL>rest_year2 = abs(BusinessDate.diff_in_days(end, BusinessDate(<EOL>date(end.year, <NUM_LIT:1>, <NUM_LIT:1>))))  <EOL>years_in_between = end.year - self.year - <NUM_LIT:1><EOL>return years_in_between + rest_year1 / (<NUM_LIT> if is_leap_year(self.year) else <NUM_LIT>) + rest_year2 / (<EOL><NUM_LIT> if is_leap_year(end.year) else <NUM_LIT>)<EOL><DEDENT>
implements Act/Act day count convention (4.16(b) 2006 ISDA Definitions)