Performing multiplication before division is generally better to avoid loss of precision because Solidity integer division might truncate. (see here)
- Integer Arithmetic
- Divide Before Multiply
- Solidity Integer Division
- Truncation
- Division -> Multiplication
- Loss of precision
- Multiplication -> Division