I am trying to get the total price which consist of quantity, price, and tax
@order = current_user.orders.build(order_params)
@order.product = product
@order.price = product.price
@orders = product.price * quantity
@order.total = @orders * 0.029
The price and quantity sums up the total but when i add the tax percentage it doesn't calculate at all?