double convertField(String in, JavNag javNag, Totals totals, Calendar rightNow, Problem problem, boolean haveNotifiedProblems, String cmd) {
		double aValue = 0.0;
		String [] aParts = in.split(":");
		if (aParts.length == 2) {
			if (aParts[0].equals("SERVICEFIELD")) {
				Service s = problem.getService();
				if (s != null)
					aValue = Double.valueOf(s.getParameter(aParts[1]));
			}
			else if (aParts[0].equals("HOSTFIELD")) {
				aValue = Double.valueOf(problem.getHost().getParameter(aParts[1]));
			}
		}
		else {
			char c = aParts[0].charAt(0);
			if (Character.isDigit(c))
				aValue = Double.valueOf(aParts[0]);
			else if (aParts[0].length() > 1) {
				Object [] result = processStringEscapes(javNag, totals, rightNow, problem, haveNotifiedProblems, aParts[0].substring(1), false);
				aValue = Double.valueOf((String)result[0]);
			}
		}

		return aValue;
	}