protected function col_intended_weight($questionstat) {
        if ($this->is_calculated_question_summary($questionstat)) {
            list($min, $max) = $questionstat->get_min_max_of('maxmark');

            if (is_null($min) && is_null($max)) {
                return '';
            } else {
                $min = quiz_report_scale_summarks_as_percentage($min, $this->quiz);
                $max = quiz_report_scale_summarks_as_percentage($max, $this->quiz);
                return $this->format_range($min, $max);
            }
        } else {
            return quiz_report_scale_summarks_as_percentage($questionstat->maxmark, $this->quiz);
        }
    }