What happens to potassium after an action potential?
During the repolarization, relatively few ions need to cross the membrane for the membrane voltage to change and therefore the change in ions concentration outside and inside the cell is neglible. After repolarization, the concentrations are restored by the continuous action of Na⁺/K⁺-ATPase. The same happens for calcium, but I don't know exactly what kind of pump is used.