I am trying to calculate years of service and would like to show months as a decimal.  For instance, a person who joined the company in October of 1993 would have 22.2 years of service in December of 2015.
The problem I am encountering is if someone has left. I have a DateOfJoining column and a DateOfLeaving column. Using the formula below, the calculation is working except in those instances when a date is entered in the DateOfLeaving column.
  
	
	
	
		
Can someone suggest how to correct this formula to accept a date of leaving
 The problem I am encountering is if someone has left. I have a DateOfJoining column and a DateOfLeaving column. Using the formula below, the calculation is working except in those instances when a date is entered in the DateOfLeaving column.
		Code:
	
	
	=IF([@DateOfLeaving]=0,DAYS360([@DateOfJoining],TODAY())/360,DAYS360([@DateOfJoining],[@DateOfLeaving]/360))
	Can someone suggest how to correct this formula to accept a date of leaving