Set timer for 5 minutes less than the time specified in recipe, check cake then for the following signs.
A fully baked cake will spring back when touched in the center. The cake also draws away from the side of the pan, and a cake tester (a toothpick of skewer works well) inserted in the center comes out clean. Also trust your sense of smell: the fresh aroma of butter and sugar wafting out of the oven can be the signal to check the cake.
When cakes emerge from the oven, their structure is set, but the set is still fragile. Let cakes stand in pans on rack for time specified in each recipe, usually 15 to 20 minutes. Run knife around edge of cake, then place rack over pan and invert cake onto rack to cool completely.