Cream the butter and sugar in the bowl of an electric mixer fitted with the paddle attachment for 4 to 5 minutes, until light and fluffy. Add the eggs 1 at a time, then add the vanilla, almond extract, and sour cream.
In a separate bowl, sift together the flour, baking powder, baking soda, and salt.
With the mixer on low, add the flour mixture to the batter until just combined. Finish stirring with a spatula to be sure the batter is completely mixed. Make sure no lumps remain in batter.
Divide batter among 20 cupcake liners (or 40 mini) and bake for 20 minutes or until a toothpick inserted in the center comes out clean. Bake for 8-9 minutes if making mini cupcakes. Allow to cool.