Did you have Apple or an Apple Authorized Service Provider perform the battery replacement? If so, then take it back and have them make things right as you have a 90 day part/repair warranty. I must say it is very unusual to have a bad battery from Apple like this, so it may be due to some other issue (hardware or software).
If a third party battery, you can try to calibrate the battery by charging it to 100% and leaving the charger connected for at least several hours afterwards. Then disconnect the charger and use the laptop only on the battery until the laptop powers off. Reconnect the charger and let it charge to 100% again.
If you installed a third party battery, then it may be bad. Unfortunately the quality of third party Lithium-ion batteries is extremely poor even when purchased from reputable vendors. OWC or iFixIt are the best options for a third party Lithium-ion batteries.