How to calculate final salary for retirement benefit computation