Basically, you can pay in until you reach the AHV age. Currently this is 65 for men and 64 for women. Persons who continue to work after reaching the AHV age may continue to make deposits until they cease employment – but not longer than 5 years after reaching the normal AHV age.