Generally speaking, cakes should cool in the pan for 15-20 minutes to give them time to set. But you should remove them from the pan after 20 minutes.