Note that datediff just subtacts the month value in each field, so that the difference between date(2008,8,31) and date(2008,9,1) (one day) would return a result of one month. You might be better off using:
datediff("d",{CONTACT2.UA1},{CONTACT2.UA2})/30
-LB