def dependencies(names)
      names.each do |name|
        calculation = fetch(name, nil)
        next unless calculation

        calculation.dependencies.each do |dependency|
          names << dependency unless names.include?(dependency)
        end
      end
    end
def dependencies(names)
      names.each do |name|
        calculation = fetch(name, nil)
        next unless calculation

        calculation.dependencies.each do |dependency|
          names << dependency unless names.include?(dependency)
        end
      end
    end
Add any missing names required for calculations that are named