it usually covers one year and guarantees 80% of total charge capacity in that warranty period.
Sometimes the battery warranty is part of your notebook warranty if you bought them together.
Poor battery performance can be either the result of a poor battery itself or a poor charger.