Reload Gun script

I want to make a reload script for FPS game this way: exp:if the player has 60 bullets left in total and 14 loaded,when he press r button i want to have 44 bullets left and 30 loaded,but i don't know how to put this in script

i've done every thing but i dont know how to make the ecuation

like in call of duty

here it is what i made so far:

var sound : AudioClip;
var bulletSpeed = 100;
var projectile : Rigidbody;
var bullets = 30;
var totalBullets = 60;
var reloadTime = 3;

function Update () 
{ 
      Fire();
}

function Fire ()
{

 if(bullets > 0)
 {
    // Ctrl was pressed, launch a projectile
    if (Input.GetButtonDown("Fire1")) 
    {
        // Instantiate the projectile at the position and rotation of this transform
        var clone : Rigidbody;
        clone = Instantiate(projectile, transform.position, transform.rotation);

        // Give the cloned object an initial velocity along the current 
        // object's Z axis
           clone.velocity = transform.TransformDirection (Vector3.forward * bulletSpeed);
           AudioSource.PlayClipAtPoint(sound, transform.position, 1);
        //take a bullet of our clip if firing       
           bullets -=1;
           GameObject.Find("bullet_count").guiText.text = ""+totalBullets;
    }

  }

}

function Reload()
{ 
   if(Input.GetButtonDown("Reload"))   
   {
  yield WaitForSeconds (reloadTime)  ;

    if(totalBullets > 0)
    {

    }

    }
}

Here's the math.

int transfer = 30 - bullets;
if (transfer > totalBullets) { transfer = totalBullets; }
bullets += transfer;
totalBullets -= transfer;