Before:

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