def tenure(self):
if self.end_date:<EOL><INDENT>return round((date.end_date - self.start_date).days / <NUM_LIT>, <NUM_LIT:2>)<EOL><DEDENT>else:<EOL><INDENT>return round((date.today() - self.start_date).days / <NUM_LIT>, <NUM_LIT:2>)<EOL><DEDENT>
Calculates board tenure in years