.
First, you INCORRECTLY cite the rule of rounding.
Below is THIS RULE in its classic form
If the number you are rounding is followed by 5, 6, 7, 8, or 9, round the number up. Example: 38 rounded to the nearest ten is 40. ...
If the number you are rounding is followed by 0, 1, 2, 3, or 4, round the number down. Example: 33 rounded to the nearest ten is 30.
Second, in your example, you MUST make all calculations FIRST, prior the rounding, and then round at the end.
So, if you do it in accordance with the rules and with the common sense, you will not have any problems.
/\/\/\/\/\/\/\/
Ignore the post by @CubeyThePenguin, since his (or her) writing is a GIBBERISH.