 				var lastLocationObject:Object;
 				var daysCalculated:int = 0;
 				// for each 24-hour day, check which international rate that should be used
+				if (num24hours == 0) { num24hours = 1; }
 				for (var i:int=0; i < num24hours; i++) {
 					//trace("check between " + Util.formatDate(dateStart) + " - " + Util.formatDate(dateStop));
 					var timeFrameSpecs:ArrayCollection = new ArrayCollection();

				amount += calculateInternationalAllowance(rateRule);
				
				// new rule from 01.03.2009, additonal compensation for travelling abroad
				if (travelDateInfo.total_hours > 12) {
					if (travelDateInfo.total_hours > 24) 
						days = travelDateInfo.days;
						

					// find the correct country/city based on the longest timeframe
					var maxTimeframe:Number = 0;
					var maxTimeframeObject:Object;
					if ((locationList.length == 0 || (i+1) == num24hours) && lastLocationObject != null) {
						// no specification in this timeframe, use last visited country
						maxTimeframeObject = lastLocationObject;
					} else {
