Work from the middle out
A 20 kg bar with one 10 kg plate on either side weighs 20 + 10 + 10 = 40 kg. Adding a 2.5 kg plate to each side raises the total to 45 kg.
Check which bar you are using
Bars come in different weights. Check the markings or ask the gym if the weight is unknown. A Smith machine can have a counterweight that changes the starting resistance. Log the machine variation separately when you want comparable sessions.