Assuming you store your chocolate cake in an airtight container in the fridge, it should be good for 3-4 days. Of course, if you have a chance to eat it sooner, that's always best! After a few days, the cake will start to dry out and won't be as fresh tasting.