recording score through countdown time

within my game i wish to have 5 levels of which all are timed 5 minuets all the way through. if the player finishes with 30 seconds to go i wish to give them 5 points and with one minute 10 points.

var o_countdownTimer : countdownTimer;
var f_timerdone = timerDone;
o_countdownTimer = GetComponent(countdownTimer);
o_countdownTimer.setStartTime(300.0);
o_countdownTimer.setTimerDoneAction(f_timerdone);
o_countdownTimer.setTimerState(true);

function timerDone() {
    Application.LoadLevel ("Time");
}

private var b_timer_active : boolean; 
private var f_timer_done; 
private var fl_start_time : float; 
private var fl_time_left : float; 

function getFlRemainingTime() { 
    return fl_time_left;
}

function setTimerDoneAction(f_method_fp) {
    f_timer_done = f_method_fp;
}

function setTimerState(b_active_fp : boolean) { 
    b_timer_active = b_active_fp;
}

function setStartTime(fl_time_fp : float) { 
    fl_start_time = fl_time_fp;
}

function Update() {
    if (b_timer_active) { 
        if (!guiText) { 
            Debug.Log("countdownTimer needs a GUIText component!");
            enabled = false;
            return;
        } else {
            doCountdown(); 
        }
    }
}

private function doCountdown() { //
    if (fl_start_time) { 
        fl_time_left = fl_start_time - Time.time; 
        fl_time_left = Mathf.Max(0, fl_time_left); 
        guiText.text = outReadableTime(fl_time_left); 
        if (fl_time_left == 0.0) { 
            b_timer_active = false;
            if (f_timer_done) { 
                f_timer_done();
            }
        }
    } else {
        Debug.Log("countdownTimer needs a value set for fl_time_left");
    }
}

private function outReadableTime(fl_time_fp : float) { 
    var i_minutes : int;
    var i_seconds : int;
    var i_time : int;
    var s_timetext : String;
    i_time = fl_time_fp;
    i_minutes = i_time / 60;
    i_seconds = i_time % 60;
    s_timetext = i_minutes.ToString() + ":";
    s_timetext = s_timetext + i_seconds.ToString();
    return s_timetext;
}

this code works great for my countdown but i cant seem to get the scoring linked to it. i know this is simple but i seem to be stuck. please could somebody help me? i would just like something to calculate my scores at the end for this timer and also for some boxes which are meant to be picked up with the name "box". I have the scoring for the boxes but can't seem to do it for the timer and also not sure on the math to calculate them at the end of the game.

Try this:

function GetPoints()
{
  return Mathf.FloorToInt(fl_time_left / 30.0) * 5;
}

I don't take responsible for any errors in the code. Its of the top of my head :-)