if record.contract_date_start and record.contract_date_end:
result = int((record.contract_date_end-record.contract_date_start).days/365.0*12.0)
else:
result = ''
if record.contract_date_start and record.contract_date_end:
result = int((record.contract_date_end-record.contract_date_start).days/365.0*12.0)
else:
result = ''