Sales tax problem solved using Ruby