After:

// Compute tax on purchase if purchase is taxable
if( taxable )
{
   tax = cost * TAX_RATE;
}