Capacity represents the specific energy in ampere-hours (Ah). Manufacturers often overrate a battery by giving a higher Ah rating than it can provide. You can use a battery with different Ah (but correct voltage), provided the rating is high enough. Chargers have some tolerance to batteries with different Ah ratings. A larger battery will take longer to charge than a small one.