The FERS retirement annuity is calculated based on a formula that considers the years of service, the average of the highest three years of salary, and a specific percentage factor determined by the individual's age at retirement.