Skip to content

Instantly share code, notes, and snippets.

@pgib
Created February 25, 2012 00:08
Show Gist options
  • Select an option

  • Save pgib/1904767 to your computer and use it in GitHub Desktop.

Select an option

Save pgib/1904767 to your computer and use it in GitHub Desktop.
Canadian tax
switch ($province)
{
case 'AB':
case 'MB':
case 'NT':
case 'NU':
case 'PE':
case 'QC':
case 'SK':
case 'YT':
{
return 0.05;
}
break;
case 'BC':
{
return 0.12;
}
break;
case 'NB':
case 'NF':
case 'ON':
{
return 0.13;
}
break;
case 'NS':
{
return 0.15;
}
break;
default:
{
return 0.00;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment