You havent said what the amounts are.
Why do you need a macro? A function will do this. Do you know what a macro is?

Either multiply or divide using the percentage on each of the amounts.