//Name 	 Sum_of_actual_time_of_current_task_and_subtasks
//Description 	Calculates the sum of the actual time for all not-closed tasks
//Type 	Task / Custom Field Value - Float

public double getAbudget(Object t) {
  double d = 0;
  if(t.getActualBudget() != null && t.getClosedate() == null && t.getChildrenCount() == 0)
    d = t.getActualBudget().doubleValue();
  for(Iterator it = t.getChildren().iterator(); it.hasNext();)
    d += getAbudget(it.next());
  d += t.getActualBudget().doubleValue()-d;
  return d;
}
return getAbudget(task);