The age doesn't really matter in defining the player's maximum cap. Only their potential rating does.
So if a player had a cap value (calculated from Josef Ka's coefficients) or 23.54, then he is possibly capped if he is a perennial allstar potential, and close to the lower end of the superstar cap.
Now, if players are old, then their training will slow due to age, but not the cap per se.