         ref = "upgrade_#{quota}"
         if input_type == 'number'
             val = @state.upgrades[quota] ? misc.round1(yours / num_projects)
-            if not @is_upgrade_input_valid(val*num_projects, limit)
+            if not @is_upgrade_input_valid(val, limit)
                 bs_style = 'error'
                 @_upgrade_is_invalid = true
             <span>

            </span>
        else if input_type == 'checkbox'
            val = @state.upgrades[quota] ? (if yours > 0 then 1 else 0)
            <form>
                <Input
                    ref      = {ref}
                    type     = 'checkbox'
                    checked  = {val > 0}
                    style    = {marginLeft : 0, position : 'inherit'}
                    onChange = {=>u=@state.upgrades; u[quota] = (if @refs[ref].getChecked() then 1 else 0); @setState(upgrades:u)}
                    />
            </form>

            return

    render_upgrade_row: (quota, total, remaining, current, yours, num_projects) ->
        {display, desc, display_factor, display_unit, input_type} = schema.PROJECT_UPGRADES.params[quota]
        yours         *= display_factor
        current       *= display_factor
