Sales tax calculator implemented in Ruby