how to calculate pension over time