Chocolate buttercream lasts in the fridge for about 1 week and in the freezer for 3 months kept in an airtight container. You can make it ahead and store it either way before frosting cake or cupcakes.