MacOS underestimates battery life on replacement battery
I'd do a NVRAM and SMC reset (in that order). Before following the steps below, ensure you have no external hardware connected and that you're using the built-in keyboard.

Reset the NVRAM

Reset the NVRAM on your MBP as follows:


Shut down your machine. That is, a full shut down, not just logging out.
Press the power button and then press the commandoptionpr keys. You have to make sure you press these keys before the gray screen appears or it won’t work.
Hold those keys down until your MBP reboots again and you here the startup chime.
Let go of the keys and let your MBP reboot normally.


Note: When you log back in you may need to readjust some of your system preferences (e.g. speaker volume, screen resolution, startup disk selection, time zone information, etc).

Reset the SMC

There's a couple of ways you can reset the SMC on your MBP, however I prefer the following steps:


Shut down your MBP
Keep the power cable plugged in
Press at the same time shiftoptioncontrol (on the left side of the keyboard) and the power button
Let go
Turn your computer back on with the power button


After resetting both the NVRAM and SMC, use your computer to determine how well macOS is reporting the remaining battery life.

Battery Condition

To view what macOS has determined as the battery's condition, hold down the Option key and click on the battery icon in the menu bar. You'll now see the condition reported at the top of the drop-down menu that appears.

coconutBattery

If you haven't already, I recommend you download and install coconutBattery 1. It provides a whole heap of information that you'll find useful!

1 Note: I am not affiliated with coconutBattery in any way.