Your CPP benefit is calculated using how much you have contributed, how long you contributed, and your average earnings.