What is the code for adding/multiplying numbers as per quantity and rate?

You will need to know you rates.

 Dim myFirstNumber, mySecondNumber As Integer
 Dim rate As Double
 Dim Answer As Double
 myFirstNumber = 10
 mySecondNumber = 30
 rate = 0.20
 Answer = (myFirstNumber + mySecondNumber) * rate

That's should work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.