
/**
 * CanadaTaxRule.java
 *
 *
 * Created: Tue Nov 19 21:43:54 2002
 *
 * @author <a href="mailto:bina@cse.buffalo.edu "</a>
 * @version
 */
/* "Just a note to inform you that the Quebec sales tax is more like 8%
 * because of the way they charge it. The tax is actually counted
 * after the federal GST has been added to the bill. For a $100
 * purchase a merchant will add $7 for GST thus amounting to a total 
 * of $107. Only after the addition has been made will the Quebec
 * sales tax be added. So 7.5% on top of $107 bill will come to
 * $115.03."
 * == somebody explaining sales tax int Quebec, Canada
 */
public class CanadaTaxRule extends TaxRule{
   public CanadaTaxRule (){
      
   }
   
   Object computeTax(Object inp)
   {
      double gst = 0.07;
      double pst = 0.08;
      double total = ((Double)inp).doubleValue();
      total = total + total*gst;
      total = total + total*pst;
      return (new Double(total));
   }
}// CanadaTaxRule
