   parallelism_cost: (plan, p) =>
     @raw_parallelism_cost(p) - @raw_parallelism_cost(plan.min_parallelism)
 
+  # p2 > p1
+  parallelism_cost_difference: (plan, p1, p2) =>
+    @parallelism_cost(plan, p2) - @parallelism_cost(plan, p1)
+
   concurrency_cost: (plan, c) ->
     if plan.concurrency == "Unlimited"
       0

      url: "/api/v1/project/#{@project_name()}/settings"
      data: JSON.stringify
        parallel: @parallel()

    true # TODO: make this reflect what is happening on the server

  parallel_input_id: (num) =>

    else
      if l.vcs_url().toLowerCase() > r.vcs_url().toLowerCase() then 1 else -1

  speed_description_style: =>
    'selected-label': @focused_parallel() == @parallel()

  disable_parallel_input: (num) =>
    num > @max_parallelism()

  load_paying_user: =>
    $.ajax
      type: "GET"
      url: "/api/v1/project/#{@project_name()}/paying_user"
      success: (result) =>
        if result?
          @paying_user(new User(result))
          @loaded_paying_user(true)

  checkbox_title: =>
    "Add CI to #{@project_name()}"
