static double getDaysInYearFromBasis( int basis, long date0, long date1 )
	{
		double r = 0;
		switch( basis )
		{
			case 0:    // 30/360
			case 2:    // actual/360
			case 4:    // 30/360 (EURO)
				r = 360;
				break;
			case 1:    // actual/actual
				GregorianCalendar fromDate = (GregorianCalendar) DateConverter.getCalendarFromNumber( new Long( date0 ) );
				int y0 = fromDate.get( Calendar.YEAR );
				if( isLeapYear( y0 ) )
				{
					r = 365.4;
				}
				else
				{
					r = 365.25;
				}
//				r= (date1-date0)/yearFrac(basis, date0, date1);
				break;
			case 3:
				r = 365;    // actual/365
				break;
		}
		return r;
	}