The people at Atal Pension Yojana (APY) are divided into 6 parts. To take advantage of APY, you must be between 18 and 40 years old. To obtain a pension under APY, you must invest for at least 20 years.